]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
pdb docs: workaround for double semicolon in strings (#17011)
authorGodefroid Chapelle <gotcha@bubblenet.be>
Sun, 8 May 2022 23:20:42 +0000 (01:20 +0200)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 23:20:42 +0000 (16:20 -0700)
see https://github.com/gotcha/ipdb/issues/172

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/pdb.rst

index ca59576336bf8a236f22c63776eee1a879f9d832..383c3adcf289d5fdfa154a39890ebbcbe7c183d3 100644 (file)
@@ -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