Xavier Combelle added the comment:

It is not the dictionary of builtin module, which is inserted in , but the 
current __builtin__ global which happen to be normally the dictionnary of 
builtin. Hence in the following code, the builtins propagation works has 
expected.

>>> eval("""eval('spam("hello 
>>> world")',{})""",{"__builtins__":{"eval":eval,"spam":print}})
hello world

----------

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

Reply via email to