summaryrefslogtreecommitdiffstatshomepage
path: root/ports/unix/variants/coverage/frzmpy/frzmpy4.py
blob: 669b37535b0f73c989dc015c031e67c75ccf3569 (plain) (blame)
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()))