[Python-ideas] If branch merging

Stephen J. Turnbull stephen at xemacs.org
Sat Jun 13 03:28:58 CEST 2015


Ethan Furman writes:

 > > 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.
 > 
 > Ah, I think I see your point.  My use of the word "shadow" was in
 > relation to the micro-scope and the previously existing name being
 > shadowed and then un-shadowed when the micro-scope was destroyed.

I see.  Your use of "shadow" implies later "unshadowing", which can
only happen with scope.  Mine doesn't, I just associate "shadow" with
rebinding.  I think your usage is more accurate.  Especially in
Python, which has a much flatter (and more formalized) use of scopes
than, say, Lisp.

Thank you for your explanation, it helped (me, anyway).



More information about the Python-ideas mailing list