> You can do this with a list comprehension: > bob(*[possible[k] for k in bob2.func_code.co_varnames]) > > The LC creates a list of arg values in the same order as the var names > for the function. Putting a * before the list when you call bob() > turns that list into it's arguments.
Thanks Tom! This turns out to be exactly what I needed. -- http://mail.python.org/mailman/listinfo/python-list