Files
cpython/Doc/library
Miss Islington (bot) 0e1e8dbb0b bpo-22057: Clarify eval() documentation (GH-8812)
If a globals dictionary without a '__builtins__' key is passed to
eval(), a '__builtins__' key will be inserted to the dictionary:

    >>> eval("print('__builtins__' in globals())", {})
    True

(As a result of this behavior, we can use the builtins
print() and globals() even if we passed a dictionary without a
'__builtins__' key to eval().)
(cherry picked from commit 225b055480)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-08-19 06:29:50 -04:00
..
2018-05-29 10:49:10 +03:00
2016-06-11 15:06:08 -04:00
2016-06-11 15:06:08 -04:00
2016-06-11 15:06:08 -04:00
2014-02-09 05:54:13 -08:00
2016-11-21 13:36:36 +00:00
2016-12-10 14:14:47 -08:00
2016-06-11 15:06:08 -04:00
2015-05-06 21:31:07 -04:00
2016-06-11 15:06:08 -04:00
2016-09-05 17:22:24 -07:00