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: print(';;') fails in pdb with SyntaxError
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: cjw296, ned.deily, wim.glenn
Priority: normal Keywords:

Created on 2016-06-06 20:43 by cjw296, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg267549 - (view) Author: Chris Withers (cjw296) * (Python committer) Date: 2016-06-06 20:43
This doesn't seem right:

(Pdb) ';;'
*** SyntaxError: EOL while scanning string literal
*** SyntaxError: EOL while scanning string literal
(Pdb) p ';;'
*** SyntaxError: EOL while scanning string literal
*** SyntaxError: EOL while scanning string literal
(Pdb) !print(';;')
*** SyntaxError: EOL while scanning string literal
*** SyntaxError: EOL while scanning string literal
msg267552 - (view) Author: wim glenn (wim.glenn) * Date: 2016-06-06 20:48
Seems to be as documented here:

https://docs.python.org/2/library/pdb.html#debugger-commands

"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."
msg268864 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2016-06-19 19:11
As Wim notes, that behavior is documented.  So, until someone wants to provide an enhancement patch, we should close this issue.  Sorry!
History
Date User Action Args
2022-04-11 14:58:32adminsetgithub: 71431
2016-06-19 19:11:21ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg268864

resolution: not a bug
stage: resolved
2016-06-06 20:48:26wim.glennsetnosy: + wim.glenn
messages: + msg267552
2016-06-06 20:43:45cjw296create