]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
pdb docs: workaround for double semicolon in strings (GH-17011)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 May 2022 23:44:33 +0000 (16:44 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 23:44:33 +0000 (16:44 -0700)
see https://github.com/gotcha/ipdb/issues/172

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2888b1107fd0b43cc800987a00155bdbeacdb23a)

Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
Doc/library/pdb.rst

index 13e1a1993692d4e5d6ace4d74059c73ba571dcbd..dcd509de56adc48dd3e5e1a5554d354f0391e450 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