cpython/Include/sentinelobject.h
Jelle Zijlstra 29a92abb60
gh-148829: Implement PEP 661 (#148831)
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-04-27 19:28:30 -07:00

22 lines
421 B
C

/* Sentinel object interface */
#ifndef Py_SENTINELOBJECT_H
#define Py_SENTINELOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_LIMITED_API
PyAPI_DATA(PyTypeObject) PySentinel_Type;
#define PySentinel_Check(op) Py_IS_TYPE((op), &PySentinel_Type)
PyAPI_FUNC(PyObject *) PySentinel_New(
const char *name,
const char *module_name);
#endif
#ifdef __cplusplus
}
#endif
#endif /* !Py_SENTINELOBJECT_H */