]> granicus.if.org Git - python/commitdiff
Note that PyNumber_Check() returns true for string and unicode objects.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 18 Nov 2002 16:19:39 +0000 (16:19 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 18 Nov 2002 16:19:39 +0000 (16:19 +0000)
Misc/NEWS

index bd37a946ba77ddecab22bcda5a00d06640d2e042..d6708359e17115c17ae06a336a506d49842d7c15 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -691,6 +691,10 @@ Build
 C API
 -----
 
+- PyNumber_Check() now returns true for string and unicode objects.
+  This is a result of these types having a partially defined
+  tp_as_number slot.
+
 - The string object's layout has changed: the pointer member
   ob_sinterned has been replaced by an int member ob_sstate.  On some
   platforms (e.g. most 64-bit systems) this may change the offset of