How to get all named args in a dict?

Jason Tackaberry tack at urandom.ca
Thu May 14 16:24:56 EDT 2009


On Thu, 2009-05-14 at 20:15 +0000, kj wrote:
> That problem is easily solved: just make "x = locals()" the first
> statement in the definition of foo.

That doesn't solve the problem.  You'd need locals().copy()

Cheers,
Jason.




More information about the Python-list mailing list