[Pyrex] metaclasses for c extension types

Simon Burton simon at arrowtheory.com
Mon Aug 8 03:48:05 CEST 2005


Hi,

I see the __metaclass__ attribute is not supported for cdef classes.
It's possible to just call the metaclass directly, but it does not produce a c extension type.
And it would mess up the code quite a bit, as i have many methods in these extension types. (and lots of types too).

I'm wondering if this is even theoretically possible (eg. by hacking the c code).
Any other ideas ?

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 



More information about the Pyrex mailing list