circuitpython/tests/micropython/native_const.py

15 lines
218 B
Python
Raw Normal View History

# test loading constants in native functions
@micropython.native
def f():
return b'bytes'
print(f())
@micropython.native
def f():
@micropython.native
def g():
return 123
return g
print(f()())