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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1692>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to