summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-09 15:57:34 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-09 15:57:34 (GMT)
commitd81a9834f76daaf3bc689da64c8e9514eae46e48 (patch)
tree3049edf76aa1eff388a33751417c01e32a6cbee2 /Misc/NEWS
parentf36921c4b0ca499134b44ff3594c6c43768799c2 (diff)
downloadcpython-d81a9834f76daaf3bc689da64c8e9514eae46e48.zip
cpython-d81a9834f76daaf3bc689da64c8e9514eae46e48.tar.gz
cpython-d81a9834f76daaf3bc689da64c8e9514eae46e48.tar.bz2
News about Neil's fix to correctly invoke __rmul__.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f397161..d92d0f2 100644
--- 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.