[Pyrex] Regression in 0.9.6.3 when raising an exception in __len__
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Nov 17 01:36:40 CET 2007
John Arbash Meinel wrote:
> I have a custom __len__ implementation for one of my classes. Under certain
> conditions it can raise an exception. With Pyrex 0.9.6.3 my exception is
> getting silently ignored.
There's a fix for this coming in the next release. The
Py_ssize_t patches turned out to not quite patch all the
necessary things.
In the meantime, you can fix it by adding the following
entry to error_value_map in Pyrex/Compiler/TypeSlots.py:
'Z': "-1",
--
Greg
More information about the Pyrex
mailing list