summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
authorAlyssa Coghlan <ncoghlan@gmail.com>2024-05-21 03:32:15 (GMT)
committerGitHub <noreply@github.com>2024-05-21 03:32:15 (GMT)
commite870c852c0ea96fa4e4569e9c39c7ceb80ce858d (patch)
tree1268f6cbbc811eb44df6935992ba76ff94e0ac89 /Lib/code.py
parent538ed5e4818aa0d0aa759634e8bfa23e317434a1 (diff)
downloadcpython-e870c852c0ea96fa4e4569e9c39c7ceb80ce858d.zip
cpython-e870c852c0ea96fa4e4569e9c39c7ceb80ce858d.tar.gz
cpython-e870c852c0ea96fa4e4569e9c39c7ceb80ce858d.tar.bz2
gh-74929: PEP 667 general docs update (gh-119201)
* expand on What's New entry for PEP 667 (including porting notes) * define 'optimized scope' as a glossary term * cover comprehensions and generator expressions in locals() docs * review all mentions of "locals" in documentation (updating if needed) * review all mentions of "f_locals" in documentation (updating if needed)
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/code.py b/Lib/code.py
index 9d12456..0c2fd29 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -25,10 +25,10 @@ class InteractiveInterpreter:
def __init__(self, locals=None):
"""Constructor.
- The optional 'locals' argument specifies the dictionary in
- which code will be executed; it defaults to a newly created
- dictionary with key "__name__" set to "__console__" and key
- "__doc__" set to None.
+ The optional 'locals' argument specifies a mapping to use as the
+ namespace in which code will be executed; it defaults to a newly
+ created dictionary with key "__name__" set to "__console__" and
+ key "__doc__" set to None.
"""
if locals is None: