1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Test importing frozen functions. # A simple bytecode function with no children. def f(): return 1 print(__name__, f()) # A simple bytecode generator with no children. def g(): yield 2 print(__name__, next(g()))