Lifetime of a local reference

Marko Rauhamaa marko at
Thu Feb 28 10:59:47 EST 2019

Chris Angelico <rosuav at>:
> What if an exception gets raised at some point before the function has
> returned? The exception object will give full access to the function's
> locals.

It wouldn't hurt for the Python gods to make an explicit ruling on the


More information about the Python-list mailing list