[Patches] [ python-Patches-802188 ] better parser error message for
non-EOL following line cont.
SourceForge.net
noreply at sourceforge.net
Thu Mar 3 12:46:32 CET 2005
Patches item #802188, was opened at 2003-09-08 02:03
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=802188&group_id=5470
Category: Parser/Compiler
Group: None
>Status: Closed
>Resolution: Accepted
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: Martin v. Löwis (loewis)
Date: 2005-03-03 12:46
Message:
Logged In: YES
user_id=21627
Thanks for the patch and the review. Committed as
errcode.h 2.17
NEWS 1.1259
tokenizer.c 2.77
pythonrun.c 2.212
----------------------------------------------------------------------
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