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