Colin Hawkett added the comment:
Apologies for raising it in the tracker against your advice. My thinking was
that you were suggesting discussions about 3.x content shouldn't be in the
tracker, and I wanted to argue that it is a bug and should be fixed i
Colin Hawkett added the comment:
#8819 was closed as duplicate. That issue linked a description of the problem
on stack overflow
http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec. I
would like to argue that this is a bug, and should be fixed in 2.6+. The
Colin Hawkett added the comment:
Agreed, this is the same issue. I'll make my argument that this is a bug
(intentional or otherwise) on that issue.
--
___
Python tracker
<http://bugs.python.org/i
New submission from Colin Hawkett :
A discussion on stack overflow -
http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec -
has led to the conclusion that the variable lookup behaviour within code run
using exec() is not behaving as expected. Variable lookup inside a