[Pyrex] Default class attributes

Pierre GM pgmdevlist at gmail.com
Tue Feb 6 04:13:20 UTC 2007


All,
How can I define a default for a class attribute ? Executable statements are 
forbidden before the __new__,  I can't overload __new__ in my case, and 
there's no __init__ method available... 
Should I use a property  with the appropriate name, that would output the 
constant I want to define ? Isn't there a less complicated way ?
Thanks a lot in advance
P.



More information about the Pyrex mailing list