[Cython] memoryview slices can't be None?

Dag Sverre Seljebotn d.s.seljebotn at astro.uio.no
Thu Feb 2 13:19:13 CET 2012


I just realized that

cdef int[:] a = None

raises an exception; even though I'd argue that 'a' is of the 
"reference" kind of type where Cython usually allow None (i.e., "cdef 
MyClass b = None" is allowed even if type(None) is NoneType). Is this a 
bug or not, and is it possible to do something about it?

Dag Sverre


More information about the cython-devel mailing list