circuitpython/tests/basics/builtin_hash_gen.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
115 B
Python
Raw Permalink Normal View History

# test builtin hash function, on generators
def gen():
yield
print(type(hash(gen)))
print(type(hash(gen())))