[Python-checkins] python/dist/src/Objects abstract.c,2.109,2.110

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sat, 07 Dec 2002 02:05:29 -0800


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

Modified Files:
	abstract.c 
Log Message:
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase.
Closes SF bug #643260.



Index: abstract.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v
retrieving revision 2.109
retrieving revision 2.110
diff -C2 -d -r2.109 -r2.110
*** abstract.c	24 Nov 2002 01:34:49 -0000	2.109
--- abstract.c	7 Dec 2002 10:05:25 -0000	2.110
***************
*** 469,473 ****
  		slotv = NB_TERNOP(mv, op_slot);
  	if (w->ob_type != v->ob_type &&
! 	    mv != NULL && NEW_STYLE_NUMBER(w)) {
  		slotw = NB_TERNOP(mw, op_slot);
  		if (slotw == slotv)
--- 469,473 ----
  		slotv = NB_TERNOP(mv, op_slot);
  	if (w->ob_type != v->ob_type &&
! 	    mw != NULL && NEW_STYLE_NUMBER(w)) {
  		slotw = NB_TERNOP(mw, op_slot);
  		if (slotw == slotv)