[Python-3000] PEP 3131 - the details
Hernan M Foffani
hfoffani at gmail.com
Thu May 17 11:27:51 CEST 2007
> > The same as in .NET (and hence IronPython)?
>
> This kind of research is time consuming; it cost me an hour to come
> up with above list. Please research it for yourself.
FYI:
-----------------
ECMA-334
C# Language Specification
9 Lexical structure
9.4 Tokens
9.4.2 Identifiers
Paragraph 1 (Page 55, Line 11)
1 The rules for identifiers rules given in this section correspond
exactly to those recommended by the Unicode Standard Annex 15 except
that underscore is allowed as an initial character (as is traditional
in the C programming language), Unicode escape sequences are permitted
in identifiers, and the "@" character is allowed as a prefix to enable
keywords to be used as identifiers.
identifier : available-identifier @ identifier-or-keyword
available-identifier : An identifier-or-keyword that is not a keyword
identifier-or-keyword : identifier-start-character identifier-part-charactersopt
identifier-start-character : letter-character _ (the underscore
character U+005F)
identifier-part-characters : identifier-part-character
identifier-part-characters identifier-part-character
identifier-part-character : letter-character decimal-digit-character
connecting-character combining-character formatting-character
letter-character : A Unicode character of classes Lu, Ll, Lt, Lm, Lo,
or Nl A unicode-escape-sequence representing a character of classes
Lu, Ll, Lt, Lm, Lo, or Nl
combining-character : A Unicode character of classes Mn or Mc A
unicode-escape-sequence representing a character of classes Mn or Mc
decimal-digit-character : A Unicode character of the class Nd A
unicode-escape-sequence representing a character of the class Nd
connecting-character : A Unicode character of the class Pc A
unicode-escape-sequence representing a character of the class Pc
formatting-character : A Unicode character of the class Cf A
unicode-escape-sequence representing a character of the class Cf
-------
Disclaimer: don't know the specification date nor its authenticity.
More information about the Python-3000
mailing list