mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
11 lines
200 B
Python
11 lines
200 B
Python
from ... import mod1
|
|
from ...mod2 import bar
|
|
print(mod1.foo)
|
|
print(bar)
|
|
|
|
# attempted relative import beyond top-level package
|
|
try:
|
|
from .... import mod1
|
|
except ValueError:
|
|
print('ValueError')
|