[Cython] automatically raise MemoryError on exceptional C return values

Stefan Behnel stefan_ml at behnel.de
Tue Aug 7 12:44:46 CEST 2012


mark florisson, 07.08.2012 12:33:
> I'd say write a wrapper function that does the check, or use an object
> that encapsulates the buffer allocation and functions. I'm not sure
> we'd want extra syntax for this. Calling functions is already
> complicated, this will complicate it even further.

Funny to see this written by someone who bloats the entire type system with
buffers, memory views and slice types, just to keep people from calculating
index offsets into arrays.

Stefan ;o)



More information about the cython-devel mailing list