8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175ba36 commit a31bbc9Copy full SHA for a31bbc9
Doc/library/code.rst
@@ -22,6 +22,12 @@ build applications which provide an interactive interpreter prompt.
22
it defaults to a newly created dictionary with key ``'__name__'`` set to
23
``'__console__'`` and key ``'__doc__'`` set to ``None``.
24
25
+ Note that functions and classes objects created under an
26
+ :class:`!InteractiveInterpreter` instance will belong to the namespace
27
+ specified by *locals*.
28
+ They are only pickleable if *locals* is the namespace of an existing
29
+ module.
30
+
31
32
.. class:: InteractiveConsole(locals=None, filename="<console>", local_exit=False)
33
0 commit comments