Class static variables

desnoix at my-deja.com desnoix at my-deja.com
Thu Jul 20 10:08:19 EDT 2000


I'm writing a tool to translate a variety of OO
programming languages. Especially I target Python
but I am hesitating about the way to define
class-scope static variables. Could you suggest me
what is the best and natural form ?

Example: MyClass { static int a; }
- MyClass_a
- accessors + global var
- any other form

Does Python have any form of static scope (not
global/local) ?

Thanks, Guillaume

PS: if possible, email me a copy to
forums at memoire.com

http://www.memoire.com/guillaume-desnoix/alma/


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list