[Pyrex] Exception issues with Python 2.5
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Thu Jul 13 13:58:29 UTC 2006
Hi Francesc,
Francesc Altet wrote:
> ----------------------------------------------------------------------------------------------------
> Traceback (most recent call last):
> File "test_tables.py", line 2143, in test06b
> row.append()
> File "TableExtension.pyx", line 1168, in TableExtension.Row.append
> TypeError: exceptions must be strings, classes, or instances, not
> exceptions.NotImplementedError
> ----------------------------------------------------------------------------------------------------
>
> So, NotImplementError seems not a new-style class (?)
Most likely, it is an object instance of a new-style class. Note that you can do
raise NotImplementedError("error occurred!")
which also fails in Py2.5. The last patch I sent fixes both cases.
Stefan
More information about the Pyrex
mailing list