mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
f69ab79ec8
Adds nothing to the code size, since it uses existing empty slots in the type structures.
8 lines
115 B
Python
8 lines
115 B
Python
# test builtin hash function, on generators
|
|
|
|
def gen():
|
|
yield
|
|
|
|
print(type(hash(gen)))
|
|
print(type(hash(gen())))
|