[Python-ideas] A PEP on introducing variables on 'if' and 'while'

Juancarlo Añez apalala at gmail.com
Sat Jun 9 09:17:37 EDT 2018


> Do you mean the context manager semantics of with statements? As in,
> calling the __enter__ and __exit__ method?
>

No. Just the scope of the variables introduced, which is different in `with
as` and `except as`.


> Please make sure you are very familiar with PEP 572 before you do, and
> expect to have your PEP compared to it.
>

My intention would be to make the to proposals orthogonal, if possible, so
both/any can be accepted or rejected in their own timeline.

I'm certain that both can live together.

-- 
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180609/598b019a/attachment-0001.html>


More information about the Python-ideas mailing list