<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 25, 2018 at 12:18 AM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">[...]<br>
</span>Agreed. I'm currently thinking that I need to do what several people<br>
have suggested and break this into two completely separate PEPs:<br>
<br>
1) Sublocal namespacing<br>
2) Assignment expressions<br>
<br>
Sublocal names can be used in a number of ways. There could be a "with<br>
sublocal EXPR as NAME:" syntax that actually disposes of the name<br>
binding at the end of the block, and "except Exception as e:" could<br>
shadow rather than unbinding. Maybe list comprehensions could change,<br>
too - instead of creating a function, they just create a sublocal<br>
scope.<br>
<br>
That may be the best way forward. I'm not sure.<br>
<br>
ChrisA<br></blockquote></div><br></div><div class="gmail_extra">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.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>