mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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)
This commit is contained in:
parent
538ed5e481
commit
e870c852c0
11 changed files with 162 additions and 65 deletions
|
@ -18,9 +18,9 @@ build applications which provide an interactive interpreter prompt.
|
|||
This class deals with parsing and interpreter state (the user's namespace); it
|
||||
does not deal with input buffering or prompting or input file naming (the
|
||||
filename is always passed in explicitly). 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``.
|
||||
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``.
|
||||
|
||||
|
||||
.. class:: InteractiveConsole(locals=None, filename="<console>", local_exit=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue