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.
This commit is contained in:
Guido van Rossum 1996-10-11 16:25:41 +00:00
parent 8741b2b988
commit e449af7da9
7 changed files with 28 additions and 24 deletions

View file

@ -1032,7 +1032,7 @@ com_subscript(c, n)
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))