mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 10:20:52 +02:00
11 lines
179 B
Python
11 lines
179 B
Python
# test import within viper function
|
|
|
|
@micropython.viper
|
|
def f():
|
|
import micropython
|
|
print(micropython.const(1))
|
|
|
|
from micropython import const
|
|
print(const(2))
|
|
f()
|