[issue43281] Walrus comprehension rebind checking behavior

2021-02-26 Thread Guido van Rossum
Guido van Rossum added the comment: I'd like Emily to have a look at that. -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Pyt

[issue43281] Walrus comprehension rebind checking behavior

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue43281] Walrus comprehension rebind checking behavior

2021-02-20 Thread Saiyang Gou
New submission from Saiyang Gou : # test PEP 572 disallows walrus use cases such as `[(i := 1) for i in [1]]`, because `for i` implies that `i` is local to the comprehension but `(i := 1)` implies that `i` is "exported", which is a contradiction. However, I noticed the following behavior bot