[Patches] [ python-Patches-802188 ] better parser error message for non-EOL following line cont.

SourceForge.net noreply at sourceforge.net
Wed Feb 23 19:30:09 CET 2005


Patches item #802188, was opened at 2003-09-08 02:03
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=802188&group_id=5470

Category: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mathieu Fenniak (laotzu0)
Assigned to: Nobody/Anonymous (nobody)
Summary: better parser error message for non-EOL following line cont.

Initial Comment:
This small patch adds a specific error message for when a 
line continuation character (\) is followed by something 
other than a newline.  If the character following the \ is 
whitespace, it can be difficult to see why it is an 'invalid 
token' as the error message used to say.

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

Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-02-23 19:30

Message:
Logged In: YES 
user_id=1188172

While this may be helpful when the invalid token is
whitespace, Python usually shows the exact location of the
invalid token, so you can examine this line and find the
error. On the other hand, the patch is no big deal, so if a
specific error message is welcome, it may as well be applied.

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

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


More information about the Patches mailing list