diff options
author | Georg Brandl <georg@python.org> | 2007-03-05 22:28:13 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-03-05 22:28:13 +0000 |
commit | 0ea891603db74a830d0ecbe91ea3df4612bca0e6 (patch) | |
tree | 30470ca155341c9aff5bd8ce19d4794e351bfe53 /Python | |
parent | 131069b3a0b3370ac1f6e518c8f67fa19d7644cf (diff) | |
download | cpython-git-0ea891603db74a830d0ecbe91ea3df4612bca0e6.tar.gz |
Patch #1674228: when assigning a slice (old-style), check for the
sq_ass_slice instead of the sq_slice slot.
(backport from rev. 54139)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 1ee0f3b603..690b2be9b7 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3926,7 +3926,7 @@ assign_slice(PyObject *u, PyObject *v, PyObject *w, PyObject *x) PyTypeObject *tp = u->ob_type; PySequenceMethods *sq = tp->tp_as_sequence; - if (sq && sq->sq_slice && ISINDEX(v) && ISINDEX(w)) { + if (sq && sq->sq_ass_slice && ISINDEX(v) && ISINDEX(w)) { Py_ssize_t ilow = 0, ihigh = PY_SSIZE_T_MAX; if (!_PyEval_SliceIndex(v, &ilow)) return -1; |