[issue1692] Syntax Error exception dosen't print string; not informative

Isaul Vargas report at bugs.python.org
Sun Dec 23 22:23:25 CET 2007


New submission from Isaul Vargas:

Python 3.0 doesn't print the string with the carat underneath when 
there is a syntax error.

>>> if x
SyntaxError: invalid syntax (<stdin>, line1)
>>> if (x=5):
SyntaxError: invalid syntax (<stdin>, line 1)

Python 2.x behavior:

>>> if (x=5): pass
  File "<stdin>", line 1
    if (x=5): pass

>>> if x
  File "<stdin>", line 1
    if x

----------
messages: 58977
nosy: Dude-X
severity: normal
status: open
title: Syntax Error exception dosen't print string; not informative
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1692>
__________________________________


More information about the Python-bugs-list mailing list