mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
pdb docs: workaround for double semicolon in strings (GH-17011)
see https://github.com/gotcha/ipdb/issues/172
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2888b1107f
)
Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
This commit is contained in:
parent
574d7b8d7c
commit
cffa76d476
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue