Lifetime of a local reference

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


Chris Angelico <rosuav at gmail.com>:
> 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
matter.


Marko


More information about the Python-list mailing list