diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-21 11:35:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 11:35:26 (GMT) |
commit | db64dae74517d094da5516b9c96d3e81e7108ebf (patch) | |
tree | 69f96c4cbba70878762f070613f40877e3fadf1f /Lib/code.py | |
parent | f7303cd96742cf6ae3dedc4e3d5211140922186f (diff) | |
download | cpython-db64dae74517d094da5516b9c96d3e81e7108ebf.zip cpython-db64dae74517d094da5516b9c96d3e81e7108ebf.tar.gz cpython-db64dae74517d094da5516b9c96d3e81e7108ebf.tar.bz2 |
[3.13] gh-74929: PEP 667 general docs update (gh-119291)
* 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)
(cherry picked from commit e870c852c0ea96fa4e4569e9c39c7ceb80ce858d)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Diffstat (limited to 'Lib/code.py')
-rw-r--r-- | Lib/code.py | 8 |
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: |