summaryrefslogtreecommitdiff
path: root/Lib/token.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-18 19:01:53 +0000
committerGeorg Brandl <georg@python.org>2007-03-18 19:01:53 +0000
commitdde002899db8d04ac25d630fcc3a27e8bbf282ea (patch)
tree336d26b7a0e0da705cc729688de862bea896b251 /Lib/token.py
parent428f0641ec34902b0cce2cfdca833c79e6fdab7c (diff)
downloadcpython-git-dde002899db8d04ac25d630fcc3a27e8bbf282ea.tar.gz
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
Diffstat (limited to 'Lib/token.py')
-rwxr-xr-xLib/token.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/token.py b/Lib/token.py
index 147536c403..eb48e76db8 100755
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -61,9 +61,10 @@ DOUBLESLASH = 48
DOUBLESLASHEQUAL = 49
AT = 50
RARROW = 51
-OP = 52
-ERRORTOKEN = 53
-N_TOKENS = 54
+ELLIPSIS = 52
+OP = 53
+ERRORTOKEN = 54
+N_TOKENS = 55
NT_OFFSET = 256
#--end constants--