Skip to content

Commit bf5fc2a

Browse files
pdb docs: workaround for double semicolon in strings (GH-17011)
see gotcha/ipdb#172 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2888b11) Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
1 parent 0dd32b5 commit bf5fc2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/pdb.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ Multiple commands may be entered on a single line, separated by ``;;``. (A
233233
single ``;`` is not used as it is the separator for multiple commands in a line
234234
that is passed to the Python parser.) No intelligence is applied to separating
235235
the commands; the input is split at the first ``;;`` pair, even if it is in the
236-
middle of a quoted string.
236+
middle of a quoted string. A workaround for strings with double semicolons
237+
is to use implicit string concatenation ``';'';'`` or ``";"";"``.
237238

238239
.. index::
239240
pair: .pdbrc; file

0 commit comments

Comments
 (0)