mirror of
https://github.com/python/cpython.git
synced 2026-02-19 13:51:09 +00:00
Note that PyNumber_Check() returns true for string and unicode objects.
This commit is contained in:
parent
fe4f769fb8
commit
6c19476168
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue