extension type attributes

horace <[email protected]> Fri, 29 May 2009 13:57:54 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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.)

_______________________________________________
Pyrex mailing list
[email protected]
http://lists.copyleft.no/mailman/listinfo/pyrex