[Python-checkins] python/dist/src/Misc NEWS,1.1045,1.1046

nascheme at users.sourceforge.net nascheme at users.sourceforge.net
Mon Jul 19 18:29:18 CEST 2004


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

Modified Files:
	NEWS 
Log Message:
Check the type of values returned by __int__, __float__, __long__,
__oct__, and __hex__.  Raise TypeError if an invalid type is
returned.  Note that PyNumber_Int and PyNumber_Long can still
return ints or longs.  Fixes SF bug #966618.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1045
retrieving revision 1.1046
diff -C2 -d -r1.1045 -r1.1046
*** NEWS	19 Jul 2004 15:38:11 -0000	1.1045
--- NEWS	19 Jul 2004 16:29:16 -0000	1.1046
***************
*** 29,32 ****
--- 29,37 ----
  - Compiler now treats None as a constant.
  
+ - The type of values returned by __int__, __float__, __long__,
+   __oct__, and __hex__ are now checked.  Returning an invalid type
+   will cause a TypeError to be raised.  This matches the behavior of
+   Jython.
+ 
  Extension modules
  -----------------



More information about the Python-checkins mailing list