[Cython] About extension types...

Robert Bradshaw robertwb at math.washington.edu
Mon Apr 27 23:34:45 CEST 2009


On Apr 27, 2009, at 8:12 AM, Mohamed Lrhazi wrote:

> Extension types are defined as "class", which the python user would
> "instantiate".
>
> Can I assume that every Python instance, using my module,  will have
> its own instance of that "class"?

I'm not sure at all what your asking here, but I believe the answer  
is that things behave just like Python. I.e. if I write

class A:
     pass

cdef class B:
     pass

Then there will be exactly one instance of A and one instance of B  
floating around (just like there's one tuple type, one list type, etc.)

- Robert



More information about the Cython-dev mailing list