Commit f4bf065d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: Add testcases for "complicated" args to generator functions.

parent 5f4a667e
......@@ -5,5 +5,13 @@ def gen(v=5):
yield i
print(list(gen()))
# Still not supported, ditto for *args and **kwargs
#print(list(gen(v=10)))
print(list(gen(v=10)))
def g(*args, **kwargs):
for i in args:
yield i
for k, v in kwargs.items():
yield (k, v)
print(list(g(1, 2, 3, foo="bar")))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment