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

index 9852beb9eadefa7352ce71ae4702045e98df5ab5..c0edcf48a900628b1ea300b01a79cc92629e8a80 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -4,6 +4,11 @@ Release date: dd-mmm-2002
 
 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.
+
 - If a dying instance of a new-style class got resurrected by its class's
   __del__ method, Python aborted with a fatal error.