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. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index d4c89677f7..8180b4224d 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1410,7 +1410,7 @@ ast_for_atom(struct compiling *c, const node *n) PyArena_AddPyObject(c->c_arena, pynum); return Num(pynum, LINENO(n), n->n_col_offset, c->c_arena); } - case DOT: /* Ellipsis */ + case ELLIPSIS: /* Ellipsis */ return Ellipsis(LINENO(n), n->n_col_offset, c->c_arena); case LPAR: /* some parenthesized expressions */ ch = CHILD(n, 1); -- cgit v1.2.1