[Pyrex] [Pyrex, Cython]Subclass basic exceptions inside Pyrex

Stefan Behnel stefan_ml at behnel.de
Sun Oct 5 09:59:33 CEST 2008


Hi,

Daniele Pianu wrote:
> I've some problems subclassing the basic extension type. The idea is
> to create my own exception hierarchy inside the Pyrex code, extending
> basic Python exception objects.

Note that this isn't portable to Python versions older than 2.5. In case this
may become desirable one day, you may be better off with normal Python
classes. Exception raising is rarely performance critical.

Stefan




More information about the Pyrex mailing list