'as' test and implementation for ImportName. Working pretty well.

This commit is contained in:
Dave Halter
2014-11-19 13:07:08 +01:00
parent e630eeb397
commit 6c5f3419ff
2 changed files with 27 additions and 12 deletions

View File

@@ -113,9 +113,12 @@ def as_imports():
from import_tree.mod1 import a as xyz
#? int()
xyz
import import_tree.mod1 as foo
import not_existant, import_tree.mod1 as foo
#? int()
foo.a
import import_tree.mod1 as bar
#? int()
bar.a
# -----------------
# std lib modules