[Python-checkins] python/dist/src/Misc NEWS,1.456,1.457

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 09 Aug 2002 08:57:36 -0700


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

Modified Files:
	NEWS 
Log Message:
News about Neil's fix to correctly invoke __rmul__.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.456
retrieving revision 1.457
diff -C2 -d -r1.456 -r1.457
*** NEWS	6 Aug 2002 17:01:51 -0000	1.456
--- NEWS	9 Aug 2002 15:57:34 -0000	1.457
***************
*** 7,10 ****
--- 7,15 ----
  Core and builtins
  
+ - When x is an object whose class implements __mul__ and __rmul__,
+   1.0*x would correctly invoke __rmul__, but 1*x would erroneously
+   invoke __mul__.  This was due to the sequence-repeat code in the int
+   type.  This has been fixed now.
+ 
  - Previously, "str1 in str2" required str1 to be a string of length 1.
    This restriction has been relaxed to allow str1 to be a string of