summaryrefslogtreecommitdiffstats
path: root/Objects/sliceobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-11 16:25:41 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-11 16:25:41 (GMT)
commite449af7da940d353a54036fb72e7405d2da362e3 (patch)
tree006a8ff9abc9d4639bf098ce59794dae9c7adf61 /Objects/sliceobject.c
parent8741b2b98861d9ffcc9d4fa211d278ba62c9109e (diff)
downloadcpython-e449af7da940d353a54036fb72e7405d2da362e3.zip
cpython-e449af7da940d353a54036fb72e7405d2da362e3.tar.gz
cpython-e449af7da940d353a54036fb72e7405d2da362e3.tar.bz2
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.
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r--Objects/sliceobject.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index 4b81293..a232296 100644
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -1,14 +1,14 @@
/*
Written by Jim Hugunin and Chris Chase.
-This includes both the singular ellipses object and slice objects.
+This includes both the singular ellipsis object and slice objects.
Guido, feel free to do whatever you want in the way of copyrights
for this file.
*/
/*
-Py_Ellipses encodes the '...' rubber index token. It is similar to
+Py_Ellipsis encodes the '...' rubber index token. It is similar to
the Py_NoneStruct in that there is no way to create other objects of
this type and there is exactly one in existence.
*/
@@ -16,16 +16,16 @@ this type and there is exactly one in existence.
#include "Python.h"
static PyObject *
-ellipses_repr(op)
+ellipsis_repr(op)
PyObject *op;
{
- return PyString_FromString("Ellipses");
+ return PyString_FromString("Ellipsis");
}
-static PyTypeObject PyEllipses_Type = {
+static PyTypeObject PyEllipsis_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0,
- "ellipses",
+ "ellipsis",
0,
0,
0, /*tp_dealloc*/ /*never called*/
@@ -33,15 +33,15 @@ static PyTypeObject PyEllipses_Type = {
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
- (reprfunc)ellipses_repr, /*tp_repr*/
+ (reprfunc)ellipsis_repr, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/
0, /*tp_as_mapping*/
0, /*tp_hash */
};
-PyObject _Py_EllipsesObject = {
- PyObject_HEAD_INIT(&PyEllipses_Type)
+PyObject _Py_EllipsisObject = {
+ PyObject_HEAD_INIT(&PyEllipsis_Type)
};