
June 12, 2015
2:55 a.m.
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?