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
# Still not supported, ditto for *args and **kwargs
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