From dde002899db8d04ac25d630fcc3a27e8bbf282ea Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 18 Mar 2007 19:01:53 +0000 Subject: Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis. --- Lib/token.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Lib/token.py') 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-- -- cgit v1.2.1