Message282262
“the current mapping of '__builtins__' is copied into *globals* ”
That sounds like we insert each individual builtin name, i.e. globals.update(builtins_mapping). But my understanding is that it is the __builtins__ global variable that is affected:
globals["__builtins__"] = builtins_mapping
What about borrowing the wording from exec():
If the *globals* dictionary is present and lacks ‘__builtins__’, a reference to the current mapping of ‘__builtins__’ is inserted under that key . . .
See also Issue 26363, which also covers this problem. |
|
Date |
User |
Action |
Args |
2016-12-03 02:32:54 | martin.panter | set | recipients:
+ martin.panter, rhettinger, docs@python, ztane, amishne |
2016-12-03 02:32:54 | martin.panter | set | messageid: <1480732374.83.0.427453121989.issue22057@psf.upfronthosting.co.za> |
2016-12-03 02:32:54 | martin.panter | link | issue22057 messages |
2016-12-03 02:32:54 | martin.panter | create | |
|