On Sun, Mar 25, 2018 at 12:18 AM, Chris Angelico <rosuav@gmail.com> wrote:
[...]
Agreed. I'm currently thinking that I need to do what several people
have suggested and break this into two completely separate PEPs:

1) Sublocal namespacing
2) Assignment expressions

Sublocal names can be used in a number of ways. There could be a "with
sublocal EXPR as NAME:" syntax that actually disposes of the name
binding at the end of the block, and "except Exception as e:" could
shadow rather than unbinding. Maybe list comprehensions could change,
too - instead of creating a function, they just create a sublocal
scope.

That may be the best way forward. I'm not sure.

ChrisA

I don't think the PEP should be split up into two PEPs. The two topics are too closely related. But you can have separate discussions about each issue in the PEP.

--
--Guido van Rossum (python.org/~guido)