mirror of
https://github.com/python/cpython.git
synced 2026-01-08 16:32:55 +00:00
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.
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
test_pkg
|
|
running test t1
|
|
running test t2
|
|
t2 loading
|
|
doc for t2
|
|
t2.sub.subsub loading
|
|
t2 t2.sub t2.sub.subsub
|
|
['sub', 't2']
|
|
t2.sub t2.sub.subsub
|
|
t2.sub.subsub
|
|
['spam', 'sub', 'subsub', 't2']
|
|
t2 t2.sub t2.sub.subsub
|
|
['spam', 'sub', 'subsub', 't2']
|
|
running test t3
|
|
t3 loading
|
|
t3.sub.subsub loading
|
|
t3 t3.sub t3.sub.subsub
|
|
t3 loading
|
|
t3.sub.subsub loading
|
|
running test t4
|
|
t4 loading
|
|
t4.sub.subsub loading
|
|
t4.sub.subsub.spam = 1
|
|
running test t5
|
|
t5.foo loading
|
|
t5.string loading
|
|
1
|
|
['foo', 'string', 't5']
|
|
['__builtins__', '__doc__', '__file__', '__name__', '__path__', 'foo', 'string', 't5']
|
|
['__builtins__', '__doc__', '__file__', '__name__', 'string']
|
|
['__builtins__', '__doc__', '__file__', '__name__', 'spam']
|
|
running test t6
|
|
['__all__', '__builtins__', '__doc__', '__file__', '__name__', '__path__']
|
|
t6.spam loading
|
|
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
|