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

Stefan Behnel <[email protected]> Sun, 05 Oct 2008 09:59:33 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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