]> granicus.if.org Git - python/commitdiff
The slot definition table entry for mp_getitem had a bogus wrapper
authorGuido van Rossum <guido@python.org>
Tue, 9 Oct 2001 20:17:57 +0000 (20:17 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 Oct 2001 20:17:57 +0000 (20:17 +0000)
function, which caused test_minidom to fail.  Fixed this.

Objects/typeobject.c

index 63843c53dc7c545210fb0adc760fa82b2ce51313..1b519711ded83d2f57960501e7709bb1c7dc707c 100644 (file)
@@ -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,