"reraise" & Exception Transformation (was Re: Modules implicitly exposing exceptions from other modules)

Aahz Maruch aahz at netcom.com
Wed Feb 16 16:28:11 EST 2000


In article <14506.62171.965245.972734 at anthem.cnri.reston.va.us>,
Barry A. Warsaw <bwarsaw at cnri.reston.va.us> wrote:
>
>def baz():
>    try:
>        bar()
>    except NameError:
>        tpe, val, tb = sys.exc_info()
>        raise AttributeError, None, tb

I recall reading that passing around a traceback object leaks memory.
Does this particular idiom avoid that trap?
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Have you coined a word today?



More information about the Python-list mailing list