[Python-Dev] Draft: PEP for imports
Batista, Facundo
FBatista at uniFON.com.ar
Fri Jan 30 09:17:24 EST 2004
Armin Rigo wrote:
#- import neatTricks in "/home/guido/lib/python" # no package
#- import package.module in "/home/guido/lib/python" # package
#- import foo in "." #
#- relative import
#- from neatTricks in "../cmds" import a, b, c
#- s=os.path.join("some", "where"); import foo in s #
#- expression path
#-
#- where the semantics would be to search sys.path if and only
#- if no 'in' clause
#- is specified. ('in' doesn't sound quite right...)
I'm +1 on this alternative. What about "at" instead of "in"?
. Facundo
More information about the Python-Dev
mailing list