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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to