[Pyrex] Class variables in Pyrex

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Aug 25 07:00:13 UTC 2006


Mike Wyatt wrote:
> How can I convert this Python class to Pyrex?
> 
>     class Test(object):
>         something = 123
>         def hello(self):
>            print Test.something

If you mean turn it into an extension type, you can't.
Pyrex extension types currently can't have class
variables.

--
Greg



More information about the Pyrex mailing list