[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2014-07-27 Thread Alon Mishne
Alon Mishne added the comment: Patch for 3.5.x The patch is just changing "globals are" to "mapping of ‘__builtins__’ is", and subsequent paragraph reformatting. Nearly identical to 2.7.8 patch. -- Added file: http://bugs.python.org/file3612

[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2014-07-27 Thread Alon Mishne
Alon Mishne added the comment: Patch for 2.7.8. The patch is just changing "globals are" to "mapping of ‘__builtins__’ is", and subsequent paragraph reformatting. -- keywords: +patch Added file: http://bugs.python.org/file3612

[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2014-07-24 Thread Alon Mishne
New submission from Alon Mishne: According to the documentation of eval(): > If the globals dictionary is present and lacks '__builtins__', the current > globals are copied into globals before expression is parsed. However in practice only the __builtins__ items are co