Issue 27244: print(';;') fails in pdb with SyntaxError (original) (raw)

Issue27244

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:32 admin set github: 71431
2016-06-19 19:11:21 ned.deily set status: open -> closednosy: + ned.deilymessages: + resolution: not a bugstage: resolved
2016-06-06 20:48:26 wim.glenn set nosy: + wim.glennmessages: +
2016-06-06 20:43:45 cjw296 create