diff options
author | James Gerity <snoopjedi@gmail.com> | 2023-05-11 17:12:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 17:12:02 (GMT) |
commit | 0449ffe3a4ddf03367a5ee3d943c89f442b7b407 (patch) | |
tree | 725782510197d69b2f23bda34d2e1942a1335463 /Doc | |
parent | 27419a71b5aa18baf24f4e640c5a6e8df9338928 (diff) | |
download | cpython-0449ffe3a4ddf03367a5ee3d943c89f442b7b407.zip cpython-0449ffe3a4ddf03367a5ee3d943c89f442b7b407.tar.gz cpython-0449ffe3a4ddf03367a5ee3d943c89f442b7b407.tar.bz2 |
gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pdb.rst | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 74bffef..ef52370 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -602,9 +602,17 @@ 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. To set a global variable, you can prefix the - assignment command with a :keyword:`global` statement on the same line, - e.g.:: + resembles a debugger command, e.g.: + + .. code-block:: none + + (Pdb) ! n=42 + (Pdb) + + To set a global variable, you can prefix the assignment command with a + :keyword:`global` statement on the same line, e.g.: + + .. code-block:: none (Pdb) global list_options; list_options = ['-l'] (Pdb) |