Re: Pyrex exception reraise behavior
Miles <[email protected]> Fri, 15 Aug 2008 13:34:57 -0400
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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