[Cython] About extension types...
Robert Bradshaw
robertwb at math.washington.edu
Tue Apr 28 03:57:47 CEST 2009
On Apr 27, 2009, at 6:10 PM, Greg Ewing wrote:
> 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()
I mean there's only one "A" object in the sense that there's only one
"tuple" object. "Instance" was arguable a bad word to choose here
(but it was the one used in the question).
- Robert
More information about the Cython-dev
mailing list