circuitpython/tests/micropython/decorator.py

8 lines
105 B
Python
Raw Normal View History

# test micropython-specific decorators
@micropython.bytecode
def f():
return 'bytecode'
print(f())