[Python-checkins] python/dist/src/Misc NEWS,1.663,1.664
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 18 Feb 2003 08:36:34 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv13369
Modified Files:
NEWS
Log Message:
Make PyNumber_Check() a bit more careful, since all sorts of things
now have tp_as_number. Check for nb_int or nb_float.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.663
retrieving revision 1.664
diff -C2 -d -r1.663 -r1.664
*** NEWS 17 Feb 2003 12:26:23 -0000 1.663
--- NEWS 18 Feb 2003 16:36:28 -0000 1.664
***************
*** 90,93 ****
--- 90,97 ----
-----------------
+ - operator.isNumberType() now checks that the object has a nb_int or
+ nb_float slot, rather than simply checking whether it has a non-NULL
+ tp_as_number pointer.
+
- The imp module now has ways to acquire and release the "import
lock": imp.acquire_lock() and imp.release_lock(). Note: this is a
***************
*** 318,321 ****
--- 322,329 ----
C API
-----
+
+ - PyNumber_Check() now checks that the object has a nb_int or nb_float
+ slot, rather than simply checking whether it has a non-NULL
+ tp_as_number pointer.
- A C type that inherits from a base type that defines tp_as_buffer