Huyston <prajoga...@gmail.com> added the comment:

Ronald Oussoren, I understand your comment and it makes sense in the module 
perspective.

However, when using 'exec', we are explicitly passing a globals dict (and 
locals) that the target code should consider.

As the documentation states:
"If globals and locals are given, they are used for the global and local 
variables, respectively."

In my point of view, the function is not considering the given globals and 
locals dict.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to