variable scope in try ... EXCEPT block.

Ed Kellett e+python-list at
Fri Jul 13 08:43:54 EDT 2018

On 2018-07-12 18:00, Chris Angelico wrote:
> What do you mean by "fix"? Make the 'x' bind eagerly? That would break
> basically every other use of closures.

No. I mean make each x a new variable--closures would work as before,
for-loops would change. If we have subscopes, it seems natural that
entering a subscope multiple times creates a new instance of that
subscope's namespace.

More information about the Python-list mailing list