mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-43753: Add Py_Is() and Py_IsNone() functions (GH-25227)
Add the Py_Is(x, y) function to test if the 'x' object is the 'y' object, the same as "x is y" in Python. Add also the Py_IsNone(), Py_IsTrue(), Py_IsFalse() functions to test if an object is, respectively, the None singleton, the True singleton or the False singleton.
This commit is contained in:
parent
6e468cb16b
commit
09bbebea16
9 changed files with 198 additions and 38 deletions
|
|
@ -767,7 +767,11 @@ Py_HasFileSystemDefaultEncoding
|
|||
Py_IncRef
|
||||
Py_Initialize
|
||||
Py_InitializeEx
|
||||
Py_Is
|
||||
Py_IsFalse
|
||||
Py_IsInitialized
|
||||
Py_IsNone
|
||||
Py_IsTrue
|
||||
Py_LeaveRecursiveCall
|
||||
Py_Main
|
||||
Py_MakePendingCalls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue