Greg Ewing wrote:
> Robin Becker wrote:
>
>> OK thanks. I noticed that all seems to work. Is the intent to allow
>> inheriting
>> from builtin types to be handled automatically as it is in python where list
>> is
>> both a constructor and a type?
>
> FWIW, the current version of Pyrex handles inheriting
> from the builtin list type okay, without the need for
> any declarations.
So, when you say
cdef class mylist(list):
pass
this will work? I assume this also works for all other (non-PyVarObject)
builtin types?
Will Pyrex handle the above type in any special way because it knows that
mylist is of type 'list', or will it ignore the builtin type specific
optimisations for it?
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev