circuitpython/tests/import/gen_context.py

12 lines
109 B
Python
Raw Normal View History

import gen_context2
GLOBAL = "GLOBAL"
def gen():
print(GLOBAL)
yield 1
gen_context2.call(gen())