circuitpython/tests/basics/generator-args.py
2014-03-30 20:25:19 +03:00

10 lines
257 B
Python

# Handling of "complicated" arg forms to generators
# https://github.com/micropython/micropython/issues/397
def gen(v=5):
for i in range(v):
yield i
print(list(gen()))
# Still not supported, ditto for *args and **kwargs
#print(list(gen(v=10)))