summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-08-19 10:25:33 (GMT)
committerGitHub <noreply@github.com>2018-08-19 10:25:33 (GMT)
commit225b05548027d55aafb11b65f6a4a2bef2f5196f (patch)
tree6c00532cf207646c8af2442ee7965d9a7c201b8e /Objects
parent77d5781835b6e0a132694ebadc22b1cbdb9913f8 (diff)
downloadcpython-225b05548027d55aafb11b65f6a4a2bef2f5196f.zip
cpython-225b05548027d55aafb11b65f6a4a2bef2f5196f.tar.gz
cpython-225b05548027d55aafb11b65f6a4a2bef2f5196f.tar.bz2
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().)
Diffstat (limited to 'Objects')
0 files changed, 0 insertions, 0 deletions