
Dec. 15, 2003
4:03 p.m.
Barry Warsaw writes:
V <wink>. Explicit global imports. I want a way to spell "import this from the global standard library even if there's a this.py in the local directory".
I like the syntax:
import global <dotted-name>
and
from global <dotted-name> import <name>
Look Guido, no new keywords! ;-)
I'd much rather invent new syntax to spell *local* imports. I like from .module import something You can even generalize and write from ..module import something to reference your package's parent package. :-) --Guido van Rossum (home page: http://www.python.org/~guido/)