Author martin.panter
Recipients amishne, docs@python, martin.panter, rhettinger, ztane
Date 2016-12-03.02:32:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
“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:54martin.pantersetrecipients: + martin.panter, rhettinger, docs@python, ztane, amishne
2016-12-03 02:32:54martin.pantersetmessageid: <>
2016-12-03 02:32:54martin.panterlinkissue22057 messages
2016-12-03 02:32:54martin.pantercreate