]> granicus.if.org Git - python/commit
* Fix decimal's handling of foreign types. Now returns NotImplemented
authorRaymond Hettinger <python@rcn.com>
Sun, 27 Mar 2005 10:47:39 +0000 (10:47 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 27 Mar 2005 10:47:39 +0000 (10:47 +0000)
commit267b868f23a85c6a63a06452c85487355cf9ab8a
tree42ac2b7e1ff7c4aa6f2148756f178a5891820ab3
parente6c470f255b958d65db75e2b9c2416585638b6cf
* 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().
Lib/decimal.py
Lib/test/test_decimal.py
Misc/NEWS