summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-21 11:28:17 (GMT)
committerThomas Wouters <thomas@python.org>2006-04-21 11:28:17 (GMT)
commit3fc2ca3884bec42d9b68336183bb07a83311ea56 (patch)
treec6beef5b10f82cf2d8fc3ed8ec626fd36b70afc4 /Objects
parent49fd7fa4431da299196d74087df4a04f99f9c46f (diff)
downloadcpython-3fc2ca3884bec42d9b68336183bb07a83311ea56.zip
cpython-3fc2ca3884bec42d9b68336183bb07a83311ea56.tar.gz
cpython-3fc2ca3884bec42d9b68336183bb07a83311ea56.tar.bz2
Merge trunk up to 45598.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 4caf538..38820d4 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -4183,10 +4183,10 @@ slot_sq_ass_item(PyObject *self, Py_ssize_t index, PyObject *value)
if (value == NULL)
res = call_method(self, "__delitem__", &delitem_str,
- "(i)", index);
+ "(n)", index);
else
res = call_method(self, "__setitem__", &setitem_str,
- "(iO)", index, value);
+ "(nO)", index, value);
if (res == NULL)
return -1;
Py_DECREF(res);
@@ -4201,10 +4201,10 @@ slot_sq_ass_slice(PyObject *self, Py_ssize_t i, Py_ssize_t j, PyObject *value)
if (value == NULL)
res = call_method(self, "__delslice__", &delslice_str,
- "(ii)", i, j);
+ "(nn)", i, j);
else
res = call_method(self, "__setslice__", &setslice_str,
- "(iiO)", i, j, value);
+ "(nnO)", i, j, value);
if (res == NULL)
return -1;
Py_DECREF(res);