[Python-ideas] PEP 468

2018-02-18 Thread guido
Gesendet von Mail für Windows 10 ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Coming up with an alternative to PEP 505's None-aware operators

2018-02-18 Thread Nick Coghlan
On 17 February 2018 at 02:31, Ethan Furman wrote: > On 02/15/2018 11:55 PM, Nick Coghlan wrote: >> However, while I think that looks nicer in general, we'd still have to >> choose between two surprising behaviours: >> >> * implicitly delete the statement locals after the

Re: [Python-ideas] Temporary variables in comprehensions

2018-02-18 Thread Steven D'Aprano
On Sun, Feb 18, 2018 at 12:23:28AM +0800, fhsxfhsx wrote: > Thank you Paul, what you said is enlightening and I agree on most part of it. > > I'll propose two candidate syntaxs. > 1. `with ... as ...` > This syntax is more paralles as there would be `for` and `with` > clause as well as

Re: [Python-ideas] Temporary variables in comprehensions

2018-02-18 Thread fhsxfhsx
Thanks so much for the comments and the collect on this syntax! Comments on *previous talk* The list also mentioned some other previous proposals, so I myself search it and find that there're even more in the mailing list since 2008.