From: Guido van Rossum Date: Tue, 9 Oct 2001 20:17:57 +0000 (+0000) Subject: The slot definition table entry for mp_getitem had a bogus wrapper X-Git-Tag: v2.2.1c1~1369 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd38f8e638420defc586df77affd66093758ec43;p=thirdparty%2FPython%2Fcpython.git The slot definition table entry for mp_getitem had a bogus wrapper function, which caused test_minidom to fail. Fixed this. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 63843c53dc7c..1b519711ded8 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,