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 ezio.melotti
Recipients baijum, ezio.melotti, loewis
Date 2009-02-27.07:48:18
SpamBayes Score 5.4449015e-06
Marked as misclassified No
Message-id <1235720900.98.0.735439502401.issue5358@psf.upfronthosting.co.za>
In-reply-to
Content
Valid identifiers should begin with a letter or '_' and contain only
letters, numbers and '_'. This probably means that only the Unicode
characters that belong to the categories Ll, Lu (Letter Lower/Upper
case), Nd (Number, Decimal Digit) and Pc (Punctuation, Connector) - and
possibly other categories like Lm, Lt, No and Nl - are valid.

Some examples:
>>> a-b = 5 # U+FF0D, Cat: Pd, FULLWIDTH HYPHEN-MINUS
SyntaxError: invalid character in identifier
>>> a# = 5 # U+FF03, Cat: Po, FULLWIDTH NUMBER SIGN
SyntaxError: invalid character in identifier
>>> a)b = 5 # U+FF09, Cat: Pe, FULLWIDTH RIGHT PARENTHESIS
SyntaxError: invalid character in identifier
>>> a_b = 5 # U+FF3F, Cat: Pc, FULLWIDTH LOW LINE
>>> a_b
5
>>> a﹍b﹎c﹏d = 5 # U+FE4D, U+FE4E, U+FE4F, Cat: Pc
>>> a﹍b﹎c﹏d
5
History
Date User Action Args
2009-02-27 07:48:21ezio.melottisetrecipients: + ezio.melotti, loewis, baijum
2009-02-27 07:48:20ezio.melottisetmessageid: <1235720900.98.0.735439502401.issue5358@psf.upfronthosting.co.za>
2009-02-27 07:48:19ezio.melottilinkissue5358 messages
2009-02-27 07:48:18ezio.melotticreate