[Pyrex] Class variables in Pyrex

Mike Wyatt mwyatt at wi.rr.com
Fri Aug 25 02:58:57 UTC 2006


How can I convert this Python class to Pyrex?

    class Test(object):
        something = 123
        def hello(self):
           print Test.something

Simply adding cdef before the class keyword doesn't work.  Thoughts?



More information about the Pyrex mailing list