Author Drekin
Recipients Drekin, ezio.melotti, vstinner
Date 2016-01-19.12:01:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453204897.88.0.969876573405.issue26152@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the following code:
>>> 1, 2
  File "<stdin>", line 1
    1, 2
       ^
SyntaxError: invalid character in identifier

The error is due to the fact, that the space before "2" is actually a non-breaking space. The error message and the position of the caret is misleading.

The tokenize module gives an ERRORTOKEN at the position of the space, so shouldn't the massage be more like "invalid syntax" with the correct position or even something more appropriate?
History
Date User Action Args
2016-01-19 12:01:37Drekinsetrecipients: + Drekin, vstinner, ezio.melotti
2016-01-19 12:01:37Drekinsetmessageid: <1453204897.88.0.969876573405.issue26152@psf.upfronthosting.co.za>
2016-01-19 12:01:37Drekinlinkissue26152 messages
2016-01-19 12:01:37Drekincreate