[Pyrex] extension type attributes
horace
horace3d at gmail.com
Fri May 29 13:57:54 CEST 2009
hi,
i have a question about extension type attributes.
cdef class MyComplex:
"""A mutable complex number type (incomplete)"""
cdef complex *c
do all attributes have to be cdef? if i want to have a python object as an
attribute i have to use
cdef object mypythonobject
and then initialize it in __init__()? or did i misunderstand something? i
didn't find the manual very clear about this.
(i use cython in case this makes any difference.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20090529/c7771bd7/attachment.html
More information about the Pyrex
mailing list