[Pyrex] Pyrex exception reraise behavior

Miles semanticist at gmail.com
Fri Aug 15 19:34:57 CEST 2008


On Thu, Jul 24, 2008 at 2:54 AM, Greg Ewing wrote:
> Miles wrote:
>
>> It looks to me like Pyrex's behavior for reraising exceptions differs
>> somewhat from Python's:
>
> There may be some other differences as well. What
> you appear to be seeing is a leaking of the
> sys.exc_info() outside the scope where it would
> normally be available in Python.
>
> Is this causing a real difficulty, or is it just
> a curiosity? I'm not sure how easy it would be
> to fix.

No, no real difficulty.  I was getting some confusing behavior in a
Pyrex module that interacted with an external library wrt. callbacks
and exceptions, and the sys.exc_info leakage was making me think that
Pyrex might have been to blame.

-Miles



More information about the Pyrex mailing list