Message282055
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 |
|
Date |
User |
Action |
Args |
2016-11-30 00:27:39 | xcombelle | set | recipients:
+ xcombelle, docs@python, mdk |
2016-11-30 00:27:39 | xcombelle | set | messageid: <1480465659.63.0.455369110798.issue26363@psf.upfronthosting.co.za> |
2016-11-30 00:27:39 | xcombelle | link | issue26363 messages |
2016-11-30 00:27:39 | xcombelle | create | |
|