[Pyrex] Class variables in Pyrex
Mike Wyatt
mwyatt at wi.rr.com
Fri Aug 25 12:26:30 UTC 2006
Thanks. Any plans on ever implementing them? Its not critical for me,
though. I'll just use a module-level variable for my current problem.
> 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