[Python-checkins] pdb docs: workaround for double semicolon in strings (#17011)

JelleZijlstra webhook-mailer at python.org
Sun May 8 19:20:49 EDT 2022


https://github.com/python/cpython/commit/2888b1107fd0b43cc800987a00155bdbeacdb23a
commit: 2888b1107fd0b43cc800987a00155bdbeacdb23a
branch: main
author: Godefroid Chapelle <gotcha at bubblenet.be>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-08T16:20:42-07:00
summary:

pdb docs: workaround for double semicolon in strings (#17011)

see https://github.com/gotcha/ipdb/issues/172

Co-authored-by: Jelle Zijlstra <jelle.zijlstra at gmail.com>

files:
M Doc/library/pdb.rst

diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index ca59576336bf8..383c3adcf289d 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -233,7 +233,8 @@ Multiple commands may be entered on a single line, separated by ``;;``.  (A
 single ``;`` is not used as it is the separator for multiple commands in a line
 that is passed to the Python parser.)  No intelligence is applied to separating
 the commands; the input is split at the first ``;;`` pair, even if it is in the
-middle of a quoted string.
+middle of a quoted string. A workaround for strings with double semicolons
+is to use implicit string concatenation ``';'';'`` or ``";"";"``.
 
 .. index::
    pair: .pdbrc; file



More information about the Python-checkins mailing list