8000 [3.14] gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069) by miss-islington · Pull Request #134328 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.14] gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069) #134328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-53189: Document peculiarities of InteractiveConsole in relation to…
… pickle (GH-123069)

(cherry picked from commit a31bbc9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
2 people authored and miss-islington committed May 20, 2025
commit 4ad68de5d15410269617a009c70986e134e8fdfb
6 changes: 6 additions & 0 deletions Doc/library/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ build applications which provide an interactive interpreter prompt.
it defaults to a newly created dictionary with key ``'__name__'`` set to
``'__console__'`` and key ``'__doc__'`` set to ``None``.

Note that functions and classes objects created under an
:class:`!InteractiveInterpreter` instance will belong to the namespace
specified by *locals*.
They are only pickleable if *locals* is the namespace of an existing
module.


.. class:: InteractiveConsole(locals=None, filename="<console>", local_exit=False)

Expand Down
Loading
0