Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-53189: Document peculiarities of InteractiveConsole in relation to pickle#123069
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
2fee244
05a9469
50d22d8
1816244
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
Comment on lines +25 to +26 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. "created under an II instance" seems awkward, but I have not suggestion yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It was based on the patch by@mjdorma:https://bugs.python.org/file26917/issue8943.diff. | ||
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) | ||
Uh oh!
There was an error while loading.Please reload this page.