Visitar URL original
gh-104301: Tidy pdb documentation of exclamation prefix by SnoopJ 路 Pull Request #104302 路 python/cpython 路 GitHub
Skip to content
Closed
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
Use explicit code-block directives to disable syntax highlighting
  • Loading branch information
SnoopJ committed May 8, 2023
commit a0124a299b56085ef47df44850f4bd5654380bc7
8 changes: 6 additions & 2 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -602,14 +602,18 @@ can be overridden by the local file.

Execute the (one-line) *statement* in the context of the current stack frame.
The exclamation point can be omitted unless the first word of the statement
resembles a debugger command, e.g.::
resembles a debugger command, e.g.:

.. code-block:: none

(Pdb) !next(some_iterator)
42
(Pdb)

To set a global variable, you can prefix the assignment command with a
:keyword:`global` statement on the same line, e.g.::
:keyword:`global` statement on the same line, e.g.:

.. code-block:: none

(Pdb) global list_options; list_options = ['-l']
(Pdb)
Expand Down