This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xcombelle
Recipients docs@python, mdk, xcombelle
Date 2016-11-30.00:27:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480465659.63.0.455369110798.issue26363@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-30 00:27:39xcombellesetrecipients: + xcombelle, docs@python, mdk
2016-11-30 00:27:39xcombellesetmessageid: <1480465659.63.0.455369110798.issue26363@psf.upfronthosting.co.za>
2016-11-30 00:27:39xcombellelinkissue26363 messages
2016-11-30 00:27:39xcombellecreate