]> granicus.if.org Git - python/commitdiff
News about Neil's fix to correctly invoke __rmul__.
authorGuido van Rossum <guido@python.org>
Fri, 9 Aug 2002 15:57:34 +0000 (15:57 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 Aug 2002 15:57:34 +0000 (15:57 +0000)
Misc/NEWS

index f3971617a471b231a90a42fcfcb5efaea700426b..d92d0f224e4b417332ec7f8b1846d52dfbd2752a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,11 @@ Type/class unification and new-style classes
 
 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
   any length.  Thus "'el' in 'hello world'" returns True now.