circuitpython/tests/micropython/decorator.py

8 lines
105 B
Python

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