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.

Author nascheme
Recipients
Date 2005-10-13.18:28:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I ran into this bug while working on the AST compiler.
 The new compiler sets the "lineno" and "filename"
attributes of SyntaxErrors in more cases than the old.
 The problem is that the traceback.py module formats
SyntaxError exceptions differently than pythonrun.c
does.  Attached is a small testcase.  Notice that
traceback.py uses str() to generate the exception line
and that it includes the file and lineno in
parenthesis.  This difference confuses doctest.py.

I guess the parse_syntax_error() logic needs to be
reproduced in traceback.py.
History
Date User Action Args
2007-08-23 14:35:26adminlinkissue1326077 messages
2007-08-23 14:35:26admincreate