homepage

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 belopolsky
Recipients belopolsky
Date 2010年11月11日.01:32:52
SpamBayes Score 5.40797e-10
Marked as misclassified No
Message-id <1289439285.11.0.506002899946.issue10384@psf.upfronthosting.co.za>
In-reply-to
Content
Can you see the error in the following?
>>> inv​alid = 5
 File "<stdin>", line 1
 inv​alid = 5
 ^
SyntaxError: invalid character in identifier
The problem is that an invisible space character crept into the identifier:
>>> repr("inv​alid")
"'inv\\u200balid'"
With full unicode available in most OSes, the potential for errors like this (accidental or as a result of a practical joke) increases. It would be much easier to spot the offending character if ^ marker pointed at the exact location rather than at the end of the identifier.
See also issue #10382.
History
Date User Action Args
2010年11月11日 01:34:45belopolskysetrecipients: + belopolsky
2010年11月11日 01:34:45belopolskysetmessageid: <1289439285.11.0.506002899946.issue10384@psf.upfronthosting.co.za>
2010年11月11日 01:32:52belopolskylinkissue10384 messages
2010年11月11日 01:32:52belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /