summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-05 22:28:08 +0000
committerGeorg Brandl <georg@python.org>2007-03-05 22:28:08 +0000
commit0fca97a5fbc49f077802339c0608eb347192df6d (patch)
tree1deb864e70f0fd7b7e39a07961583d7cd71c0484 /Python
parentca90ca81a4af94cb7b9b6cce5e93d4fa5b127703 (diff)
downloadcpython-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.c2
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;