summaryrefslogtreecommitdiff
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 07:42:36 +0000
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 07:42:36 +0000
commita62862120ddc4636f8819b3f3003ea94c5db0d21 (patch)
treee6d80910b32320636f3b272f9fa56ed9e690b31c /Objects/tupleobject.c
parent1cf3964fd1002aefb674e1c9320483c2becdb707 (diff)
downloadcpython-git-a62862120ddc4636f8819b3f3003ea94c5db0d21.tar.gz
More low-hanging fruit. Still need to re-arrange some code (or find a better
solution) in the same way as listobject.c got changed. Hoping for a better solution.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index c16c71a154..c0c205656e 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -547,7 +547,7 @@ tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyObject *
tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
- PyObject *tmp, *new, *item;
+ PyObject *tmp, *newobj, *item;
Py_ssize_t i, n;
assert(PyType_IsSubtype(type, &PyTuple_Type));
@@ -555,16 +555,16 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (tmp == NULL)
return NULL;
assert(PyTuple_Check(tmp));
- new = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp));
- if (new == NULL)
+ newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp));
+ if (newobj == NULL)
return NULL;
for (i = 0; i < n; i++) {
item = PyTuple_GET_ITEM(tmp, i);
Py_INCREF(item);
- PyTuple_SET_ITEM(new, i, item);
+ PyTuple_SET_ITEM(newobj, i, item);
}
Py_DECREF(tmp);
- return new;
+ return newobj;
}
PyDoc_STRVAR(tuple_doc,