[Python-checkins] CVS: python/dist/src/Objects typeobject.c,2.97,2.98

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 09 Oct 2001 13:17:59 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv21807

Modified Files:
	typeobject.c 
Log Message:
The slot definition table entry for mp_getitem had a bogus wrapper
function, which caused test_minidom to fail.  Fixed this.


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.97
retrieving revision 2.98
diff -C2 -d -r2.97 -r2.98
*** typeobject.c	2001/10/09 19:39:46	2.97
--- typeobject.c	2001/10/09 20:17:57	2.98
***************
*** 3724,3728 ****
  
  	MPSLOT("__len__", mp_length, slot_mp_length, wrap_inquiry),
! 	MPSLOT("__getitem__", mp_subscript, slot_mp_subscript, wrap_sq_item),
  	MPSLOT("__setitem__", mp_ass_subscript, slot_mp_ass_subscript,
  	       wrap_objobjargproc),
--- 3724,3729 ----
  
  	MPSLOT("__len__", mp_length, slot_mp_length, wrap_inquiry),
! 	MPSLOT("__getitem__", mp_subscript, slot_mp_subscript,
! 	       wrap_binaryfunc),
  	MPSLOT("__setitem__", mp_ass_subscript, slot_mp_ass_subscript,
  	       wrap_objobjargproc),