This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Pdb parser bug
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: belopolsky, georg.brandl, isandler
Priority: normal Keywords:

Created on 2006-08-30 20:46 by belopolsky, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg29713 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2006-08-30 20:46
>>> import pdb
>>> pdb.set_trace()
--Return--
> <stdin>(1)<module>()->None
(Pdb) p ";;"
*** SyntaxError: SyntaxError('EOL while scanning
single-quoted string', ('<string>', 1, 1, '"'))
*** SyntaxError: EOL while scanning single-quoted
string (<stdin>, line 1)


Still present in trunk:51513M
msg29714 - (view) Author: Ilya Sandler (isandler) Date: 2006-09-04 21:42
Logged In: YES 
user_id=971153

For the record, this behaviour is explicitly documented in
pdb docs.

from:
http://www.python.org/doc/current/lib/debugger-commands.html

"""Multiple commands may be entered on a single line,
separated by ";;".... 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."""

So should this be considered a bug?  
msg29715 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-10-12 09:23
Logged In: YES 
user_id=849994

It's documented, and it can be worked around. So I'm closing
this as Won't Fix. If you want to have a more elaborate
splitting, please submit a feature request.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43915
2006-08-30 20:46:52belopolskycreate