[Python-ideas] If branch merging

Stephen J. Turnbull stephen at xemacs.org
Fri Jun 12 17:14:14 CEST 2015


Ethan Furman writes:

 > Likewise:
 > 
 >     for val in some_iterator:
 >        use(val)
 > 
 >     bar(val)
 > 
 > will shadow foo.val

Yes, I understand that.  What I don't understand is your statement
that you would like "if expr as val:" if it *doesn't* shadow.



More information about the Python-ideas mailing list