summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-09 20:17:57 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-09 20:17:57 (GMT)
commitfd38f8e638420defc586df77affd66093758ec43 (patch)
tree8b9db749fb370d09dc6350a1c70664f8aed4cfdf /Objects
parent53f8fe4232867b89d4114c501ffed7b3e338a056 (diff)
downloadcpython-fd38f8e638420defc586df77affd66093758ec43.zip
cpython-fd38f8e638420defc586df77affd66093758ec43.tar.gz
cpython-fd38f8e638420defc586df77affd66093758ec43.tar.bz2
The slot definition table entry for mp_getitem had a bogus wrapper
function, which caused test_minidom to fail. Fixed this.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 63843c5..1b51971 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3723,7 +3723,8 @@ static slotdef slotdefs[] = {
wrap_intargfunc),
MPSLOT("__len__", mp_length, slot_mp_length, wrap_inquiry),
- MPSLOT("__getitem__", mp_subscript, slot_mp_subscript, wrap_sq_item),
+ MPSLOT("__getitem__", mp_subscript, slot_mp_subscript,
+ wrap_binaryfunc),
MPSLOT("__setitem__", mp_ass_subscript, slot_mp_ass_subscript,
wrap_objobjargproc),
MPSLOT("__delitem__", mp_ass_subscript, slot_mp_ass_subscript,