Robin Becker wrote:
> Greg Ewing wrote:
>> FWIW, the current version of Pyrex handles inheriting
>> from the builtin list type okay, without the need for
>> any declarations.
>>
> yes this code is a bit out of date.
Not out of date (in the sense that it hasn't been worked on), but lacking
a port. This Pyrex feature dates back to March 2008 (Pyrex 0.9.7, hg rev.
26-37). It won't be trivial to port, and from a quick glance, it looks a
bit like a clever hack. It will likely interfere with Cython's builtin
caching feature, although that might become redundant in many cases.
True/False handling is another thing that works different in Cython now,
so that must be left out.
I also wonder how exception subtyping is handled for Python versions
before 2.5. I assume this is left to the user, so that
cdef class MyExc(Exception): pass
will require Py2.5+, whereas
class MyExc(Exception): pass
should still work in Py2.3.
It's too bad that Pyrex's test suite doesn't really test anything. It will
be a bit of work to add suitable test cases to Cython.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev