[Python-ideas] If branch merging
Stephen J. Turnbull
stephen at xemacs.org
Fri Jun 12 08:55:52 CEST 2015
Ethan Furman writes:
> I would find the 'as NAME' portion very useful as long as it wasn't
> shadowing nor unset.
I don't understand the "not shadowing" requirement. If you're not
going to create a new scope, then
from foo import *
if expr as val:
use(val)
bar(val)
might very well shadow foo.val and break the invocation of bar. Is
use of the identifier "val" in this context an error? Or what?
More information about the Python-ideas
mailing list