Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-74929: PEP 667 general docs update #119201

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 20 commits into from
May 21, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
pdb's interact still uses a new namespace
  • Loading branch information
ncoghlan committed May 20, 2024
commit fa4172b84bd7bf7bc36e39cd26161cc66764172d
16 changes: 9 additions & 7 deletions 16 Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,18 @@ can be overridden by the local file.

.. pdbcommand:: interact

Start an interactive interpreter (using the :mod:`code` module) whose global
and local namespaces correspond to the global and local namespaces in the
Start an interactive interpreter (using the :mod:`code` module) in a new
global namespace initialised from the local and global namespaces for the
current scope. Use ``exit()`` or ``quit()`` to exit the interpreter and
return to the debugger.

.. note::

As ``interact`` creates a new dedicated namespace for code execution,
assignments to variables will not affect the original namespaces.
However, modifications to any referenced mutable objects will be reflected
in the original namespaces as usual.

.. versionadded:: 3.2

.. versionchanged:: 3.13
Expand All @@ -599,11 +606,6 @@ can be overridden by the local file.
:pdbcmd:`interact` directs its output to the debugger's
output channel rather than :data:`sys.stderr`.

.. versionchanged:: 3.13
The implementation of :pep:`667` means that name assignments made via the
interactive console will directly affect the active scope, even when
running inside a function, generator, or coroutine.

.. _debugger-aliases:

.. pdbcommand:: alias [name [command]]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.