diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-17 15:57:41 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-17 15:57:41 (GMT) |
commit | dde99d2633d7d744730d4464521e936bf1b6b411 (patch) | |
tree | 40ccf7a85cbd51963dba18f4dfe9aafaf7a00617 /Objects | |
parent | 5c97c798d25d24e03f28db5c2b90d6e08a355346 (diff) | |
download | cpython-dde99d2633d7d744730d4464521e936bf1b6b411.zip cpython-dde99d2633d7d744730d4464521e936bf1b6b411.tar.gz cpython-dde99d2633d7d744730d4464521e936bf1b6b411.tar.bz2 |
Remove size constraints in SLICE opcodes.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 7d975ec..9a36f7d 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -1170,7 +1170,7 @@ instance_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j) return NULL; arg = Py_BuildValue("(N)", sliceobj_from_intint(i, j)); } else - arg = Py_BuildValue("(ii)", i, j); + arg = Py_BuildValue("(nn)", i, j); if (arg == NULL) { Py_DECREF(func); @@ -1241,7 +1241,7 @@ instance_ass_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j, PyObject arg = Py_BuildValue("(N)", sliceobj_from_intint(i, j)); } else - arg = Py_BuildValue("(ii)", i, j); + arg = Py_BuildValue("(nn)", i, j); } else { if (setslicestr == NULL) @@ -1262,7 +1262,7 @@ instance_ass_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j, PyObject arg = Py_BuildValue("(NO)", sliceobj_from_intint(i, j), value); } else - arg = Py_BuildValue("(iiO)", i, j, value); + arg = Py_BuildValue("(nnO)", i, j, value); } if (arg == NULL) { Py_DECREF(func); |