Marcos Dione <[email protected]> writes: > ... > My problem is modifying the > locals ...
In Python 2.7, I succeeded with the following code:
>>> def f():
... x = 1
... exec('x=2')
... return x
...
>>> f()
2
--
https://mail.python.org/mailman/listinfo/python-list
