]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
- Fixed decimal operator and comparison methods to return NotImplemented
authorRaymond Hettinger <python@rcn.com>
Sun, 27 Mar 2005 10:55:27 +0000 (10:55 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 27 Mar 2005 10:55:27 +0000 (10:55 +0000)
commit680db018be01f1c9e442b1ae887dad1d750f680e
treee6035aff32091cd7d7a3ee308610aac7d6dfd41d
parent3589d815b4ecab7bc033e971d6a345d7ad801e1a
- Fixed decimal operator and comparison methods to return NotImplemented
  instead of raising a TypeError when interacting with other types.
  Allows other classes to successfully implement __radd__ style methods.
Lib/decimal.py
Lib/test/test_decimal.py
Misc/NEWS