mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
11 lines
220 B
Python
11 lines
220 B
Python
import mypkg
|
|
|
|
print(mypkg.foo) # 42
|
|
try:
|
|
print(mypkg.bar)
|
|
except AttributeError as e:
|
|
print(e) # module 'mypkg' has no attribute 'bar'
|
|
|
|
from mypkg import bar as _bar
|
|
print(mypkg.bar) # <module 'mypkg.bar' ...
|