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

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 31 Jul 2001 09:50:21 -0700


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

Modified Files:
      Tag: descr-branch
	typeobject.c 
Log Message:
The __radd__ wrapper for sequences made no sense.
Rip it out.  (This fixes the only valid part of SF bug #446375.)


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.16.8.71
retrieving revision 2.16.8.72
diff -C2 -d -r2.16.8.71 -r2.16.8.72
*** typeobject.c	2001/07/31 07:07:37	2.16.8.71
--- typeobject.c	2001/07/31 16:50:17	2.16.8.72
***************
*** 1476,1479 ****
--- 1476,1484 ----
  };
  
+ static struct wrapperbase tab_concat[] = {
+ 	{"__add__", (wrapperfunc)wrap_binaryfunc, "x.__add__(y) <==> x+y"},
+ 	{0}
+ };
+ 
  static struct wrapperbase tab_imul_int[] = {
  	{"__imul__", (wrapperfunc)wrap_intargfunc, "x.__imul__(n) <==> x*=n"},
***************
*** 1861,1865 ****
  	if ((sq = type->tp_as_sequence) != NULL) {
  		ADD(sq->sq_length, tab_len);
! 		ADD(sq->sq_concat, tab_add);
  		ADD(sq->sq_repeat, tab_mul_int);
  		ADD(sq->sq_item, tab_getitem_int);
--- 1866,1870 ----
  	if ((sq = type->tp_as_sequence) != NULL) {
  		ADD(sq->sq_length, tab_len);
! 		ADD(sq->sq_concat, tab_concat);
  		ADD(sq->sq_repeat, tab_mul_int);
  		ADD(sq->sq_item, tab_getitem_int);