2016-11-10 22:54:55 +11:00
|
|
|
# test import within viper function
|
|
|
|
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2016-11-10 22:54:55 +11:00
|
|
|
@micropython.viper
|
|
|
|
def f():
|
|
|
|
import micropython
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2016-11-10 22:54:55 +11:00
|
|
|
print(micropython.const(1))
|
|
|
|
|
|
|
|
from micropython import const
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2016-11-10 22:54:55 +11:00
|
|
|
print(const(2))
|
2021-03-15 19:27:36 +05:30
|
|
|
|
|
|
|
|
2016-11-10 22:54:55 +11:00
|
|
|
f()
|