+ Reply to Thread
Results 1 to 1 of 1

Thread: Static Variables in Python

  1. #1
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Static Variables in Python

    This only works in Python 3.0+ (due to relying on the use of the __new__ class method), but it allows you to use "static" class attributes in python. It can also be used to pass variables to a function by reference, another feature left out of python. If anyone makes improvements on this, please post them up here.
    Attached Files

+ Reply to Thread

Similar Threads

  1. How to run Python on X10Hosting
    By ah-blabla in forum Tutorials
    Replies: 16
    Last Post: 12-29-2010, 07:01 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. Python/.htaccess help
    By *Face in forum Free Hosting
    Replies: 6
    Last Post: 09-21-2007, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers