diff options
author | Thomas Wouters <thomas@python.org> | 2000-08-17 22:55:00 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-08-17 22:55:00 (GMT) |
commit | 5215225ea1e3200b572775639d567f5e3f489a15 (patch) | |
tree | 8202d4aebf513dc8c8a80adf018f13270386e658 /Lib/test/output/test_pkg | |
parent | 1d75a79c009e500923128716a02efbe86135e64e (diff) | |
download | cpython-5215225ea1e3200b572775639d567f5e3f489a15.zip cpython-5215225ea1e3200b572775639d567f5e3f489a15.tar.gz cpython-5215225ea1e3200b572775639d567f5e3f489a15.tar.bz2 |
Apply SF patch #101135, adding 'import module as m' and 'from module import
name as n'. By doing some twists and turns, "as" is not a reserved word.
There is a slight change in semantics for 'from module import name' (it will
now honour the 'global' keyword) but only in cases that are explicitly
undocumented.
Diffstat (limited to 'Lib/test/output/test_pkg')
-rw-r--r-- | Lib/test/output/test_pkg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/output/test_pkg b/Lib/test/output/test_pkg index 4cb503e..4e67f8c 100644 --- a/Lib/test/output/test_pkg +++ b/Lib/test/output/test_pkg @@ -36,3 +36,10 @@ t6.ham loading t6.eggs loading ['__all__', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'eggs', 'ham', 'spam'] ['eggs', 'ham', 'spam', 't6'] +running test t7 +t7 loading +['__builtins__', '__doc__', '__file__', '__name__', '__path__'] +['__builtins__', '__doc__', '__file__', '__name__', '__path__'] +t7.sub.subsub loading +['__builtins__', '__doc__', '__file__', '__name__', '__path__', 'spam'] +t7.sub.subsub.spam = 1 |