diff options
author | Georg Brandl <georg@python.org> | 2007-03-05 22:28:08 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-03-05 22:28:08 +0000 |
commit | 0fca97a5fbc49f077802339c0608eb347192df6d (patch) | |
tree | 1deb864e70f0fd7b7e39a07961583d7cd71c0484 /Python | |
parent | ca90ca81a4af94cb7b9b6cce5e93d4fa5b127703 (diff) | |
download | cpython-git-0fca97a5fbc49f077802339c0608eb347192df6d.tar.gz |
Patch #1674228: when assigning a slice (old-style), check for the
sq_ass_slice instead of the sq_slice slot.
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 3a87052d99..63efd4ee95 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3927,7 +3927,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; |