kbjradmin
New Member
- Messages
- 512
- Reaction score
- 2
- Points
- 0
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.