From: Neil Schemenauer Date: Mon, 18 Nov 2002 16:19:39 +0000 (+0000) Subject: Note that PyNumber_Check() returns true for string and unicode objects. X-Git-Tag: v2.3c1~3367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c194761688da105495cdfbdbe7f886c1998b2ec;p=python Note that PyNumber_Check() returns true for string and unicode objects. --- diff --git a/Misc/NEWS b/Misc/NEWS index bd37a946ba..d6708359e1 100644 --- 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