[Patches] [ python-Patches-1501979 ] syntax errors on continuation lines

SourceForge.net noreply at sourceforge.net
Wed Jun 7 04:49:17 CEST 2006


Patches item #1501979, was opened at 2006-06-06 16:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1501979&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Roger Miller (rcmiller)
Assigned to: Nobody/Anonymous (nobody)
Summary: syntax errors on continuation lines

Initial Comment:
This patch modifies syntax error location information
to indicate when an error is detected on a statement
continuation line, for example
     File "test.py", line 42 (continuing line 41)
The intent is to be less confusing when an error
reported on one line is actually the result of
unbalanced brackets on a previous line.  The change
adds a new 'stmt_lineno' field to the SyntaxError
exception, containing the line number on which the
statement started.

The patch is against r46701 and was developed and
tested on Fedora 4 Linux.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1501979&group_id=5470


More information about the Patches mailing list