Robert Bradshaw wrote:

> I use the fact that extension types can be None all over the place.  Is 
> this exclusively for arguments?

Yes, it's only for arguments, and only for Python
functions (i.e. def, not cdef). The idea is to
protect the boundary between Python and C land
from getting passed invalid values.

Checking for None on all accesses is a separate
issue. I wouldn't object to an option for that,
although the cost of turning it on is going to
be very high, unless you can optimise some of
the tests away with flow analysis somehow.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to