Added support for non-ASCII identifiers

This commit is contained in:
Dmitry Vasiliev
2008-12-07 18:20:21 +03:00
parent 69dcbc3482
commit 64749a3a88
4 changed files with 61 additions and 57 deletions

12
test.py
View File

@@ -11,7 +11,9 @@
with break continue del exec return pass print raise global assert lambda yield
for while if elif else import from as try except finally and in is not or
def functionname
class classname
class Classname
def функция
class Класс
# Builtin objects.
@@ -48,11 +50,11 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
# Numbers
0 0x1f 077 .3 12.34 100L 0j 0j 34.2E-3 0b10 0o77 0xfffffffL 0L
0 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77
# Erroneous numbers
08 0xk 0x 0b102 0o78
077 100L 0xfffffffL 0L 08 0xk 0x 0b102 0o78
# Strings
@@ -67,10 +69,12 @@ RuntimeWarning FutureWarning OverflowWarning ImportWarning UnicodeWarning
" \a\b\c\"\'\n\r \x34\077 \08 \xag"
r" \" \' "
u"test"
"testтест"
b"test"
b"тестtest"
# Formattings
" %f "