Stefan Behnel wrote: > cdef class mylist(list): > pass > > this will work?
I haven't tested it extensively, but the above certainly compiles, and I don't know of any reason why it shouldn't work. Pyrex just preloads the symbol table as if you had written an external declaration for type 'list', so the end result should be the same. > I assume this also works for all other (non-PyVarObject) > builtin types? It should work for the ones Pyrex knows about. You will need to provide your own declarations for any others. > Will Pyrex handle the above type in any special way because it knows that > mylist is of type 'list' It *should*, but trying it just now, there seems to be a bug... I'll see about fixing it. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
