[Python-checkins] python/dist/src/Misc NEWS,1.1276,1.1277

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Mar 27 12:47:41 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11467/Misc

Modified Files:
	NEWS 
Log Message:
* 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().



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1276
retrieving revision 1.1277
diff -u -d -r1.1276 -r1.1277
--- NEWS	21 Mar 2005 20:56:35 -0000	1.1276
+++ NEWS	27 Mar 2005 10:47:36 -0000	1.1277
@@ -91,6 +91,11 @@
 - 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.
 



More information about the Python-checkins mailing list