Paul Rubin wrote: > Martin De Kauwe <mdeka...@gmail.com> writes: >> def wrapper(*old_dicts): >> dict={} >> for d in old_dicts: >> dict.update(d) >> return f(**dict) > > Untested: > > from itertools import chain > def wrapper(*old_dicts): > return f(**dict(chain(d.iteritems() for d in old_dicts)))
I think you need chain.from_iterable() instead of chain(). -- http://mail.python.org/mailman/listinfo/python-list