summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-03-27 10:47:39 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-03-27 10:47:39 (GMT)
commit267b868f23a85c6a63a06452c85487355cf9ab8a (patch)
tree42ac2b7e1ff7c4aa6f2148756f178a5891820ab3 /Misc/NEWS
parente6c470f255b958d65db75e2b9c2416585638b6cf (diff)
downloadcpython-267b868f23a85c6a63a06452c85487355cf9ab8a.zip
cpython-267b868f23a85c6a63a06452c85487355cf9ab8a.tar.gz
cpython-267b868f23a85c6a63a06452c85487355cf9ab8a.tar.bz2
* Fix decimal's handling of foreign types. Now returns NotImplemented
instead of raising a TypeError. Allows other types to successfully implement __radd__() style methods. * Remove future division import from test suite. * Remove test suite's shadowing of __builtin__.dir().
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 1706874..9a63f21 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,11 @@ Library
- distutils.commands.upload was added to support uploading distribution
files to PyPI.
+- decimal operator and comparison methods now return NotImplemented
+ instead of raising a TypeError when interacting with other types. This
+ allows other classes to implement __radd__ style methods and have them
+ work as expected.
+
- Bug #1163325: Decimal infinities failed to hash. Attempting to
hash a NaN raised an InvalidOperation instead of a TypeError.