[Cython] About extension types...

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 28 03:10:34 CEST 2009


Robert Bradshaw wrote:

> class A:
>      pass
> 
> cdef class B:
>      pass
> 
> Then there will be exactly one instance of A and one instance of B  
> floating around

Um, no, there are *no* instances of A or B until you
create some, e.g.

   a = A()
   b = B()

-- 
Greg


More information about the Cython-dev mailing list