both this
def argv_transform(argv):for arg in argv:
k, v = arg.split("=")
yield k, v.split(",")
and this:
def argv_transform(argv):for arg in argv:
k, v = arg.split("=")
yield k, v.split(",")
is valid (doesn't throw obvious errors) python code.
tbqh, I would've expected k, v to be out of scope in the second example, and the function to throw an error.