diff options
author | Raymond Hettinger <python@rcn.com> | 2005-03-27 10:47:39 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-03-27 10:47:39 (GMT) |
commit | 267b868f23a85c6a63a06452c85487355cf9ab8a (patch) | |
tree | 42ac2b7e1ff7c4aa6f2148756f178a5891820ab3 /Misc/NEWS | |
parent | e6c470f255b958d65db75e2b9c2416585638b6cf (diff) | |
download | cpython-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |