Re: [Python-ideas] PEP 572: Statement-Local Name Bindings, take three!

2018-03-26 Thread BrenBarn
On 03/26/2018 04:18 AM, Steven D'Aprano wrote: On Mon, Mar 26, 2018 at 11:14:43AM +0300, Kirill Balunov wrote: Hi Chris, would you mind to add this syntactic form `(expr -> var)` to alternative syntax section, with the same semantics as `(expr as var)`. It seems to me that I've seen this form pr

Re: [Python-ideas] PEP 572: Statement-Local Name Bindings, take three!

2018-03-27 Thread BrenBarn
On 03/23/2018 03:01 AM, Chris Angelico wrote: Apologies for letting this languish; life has an annoying habit of getting in the way now and then. My simple response to all of this is that it's not worth it. Each new example convinces me more and more that in almost every case, sublocal assi