bpo-43753: Add Py_Is() and Py_IsNone() functions by vstinner · Pull Request #25227 · python/cpython

erlend-aasland

erlend-aasland

corona10

@vstinner vstinner changed the title bpo-43753: Add Py_Is() and Py_IsNone() functions bpo-43753: Add Py_Is() function

Apr 9, 2021

@vstinner vstinner changed the title bpo-43753: Add Py_Is() function bpo-43753: Add Py_Is() and Py_IsNone() functions

Apr 9, 2021

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

pablogsal

corona10

@vstinner

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.

pablogsal

erlend-aasland

@msuozzo msuozzo mannequin mentioned this pull request

Apr 10, 2022

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 9, 2026

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 9, 2026

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 9, 2026

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 9, 2026

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 11, 2026

vfazio added a commit to vfazio/libgpiod that referenced this pull request

Apr 13, 2026