diff Python/compile.c @ 4403:3b3f7c3f6da2 legacy-trunk

Ellipses -> Ellipsis rename (the dictionary really says that it should be Ellipsis!). Bumped the API version because a linker-visible symbol is affected. Old C code will still compile -- there's a b/w compat macro. Similarly, old Python code will still run, builtin exports both Ellipses and Ellipsis.
author Guido van Rossum <guido@python.org>
date Fri, 11 Oct 1996 16:25:41 +0000
parents 46d736fb9da3
children 65d2d8e67da3
line wrap: on
line diff
--- a/Python/compile.c	Fri Oct 11 16:00:06 1996 +0000
+++ b/Python/compile.c	Fri Oct 11 16:25:41 1996 +0000
@@ -1032,7 +1032,7 @@
 	ch = CHILD(n,0);
 	/* check for rubber index */
 	if (TYPE(ch) == DOT && TYPE(CHILD(n,1)) == DOT)
-		com_addoparg(c, LOAD_CONST, com_addconst(c, Py_Ellipses));
+		com_addoparg(c, LOAD_CONST, com_addconst(c, Py_Ellipsis));
 	else {
 		/* check for slice */
 		if ((TYPE(ch) == COLON || NCH(n) > 1))