summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-19 10:32:12 (GMT)
committerGitHub <noreply@github.com>2018-08-19 10:32:12 (GMT)
commitf19579b8f1fcd2dd8ffaf3e443b09930057c01d1 (patch)
tree24c4711aa3071ac588095ffd1f92666a0c57036a /Python/sysmodule.c
parentfed871835ee54f50cabcec6239271739ed4839f5 (diff)
downloadcpython-f19579b8f1fcd2dd8ffaf3e443b09930057c01d1.zip
cpython-f19579b8f1fcd2dd8ffaf3e443b09930057c01d1.tar.gz
cpython-f19579b8f1fcd2dd8ffaf3e443b09930057c01d1.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().) (cherry picked from commit 225b05548027d55aafb11b65f6a4a2bef2f5196f) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions