Searched refs:Py_GetConstant (Results 1 – 10 of 10) sorted by relevance
20 PyObject *obj = Py_GetConstant(constant_id); in get_constant()56 assert(Py_None == Py_GetConstant(Py_CONSTANT_NONE)); in test_constants()57 assert(Py_False == Py_GetConstant(Py_CONSTANT_FALSE)); in test_constants()58 assert(Py_True == Py_GetConstant(Py_CONSTANT_TRUE)); in test_constants()59 assert(Py_Ellipsis == Py_GetConstant(Py_CONSTANT_ELLIPSIS)); in test_constants()60 assert(Py_NotImplemented == Py_GetConstant(Py_CONSTANT_NOT_IMPLEMENTED)); in test_constants()
9 .. c:function:: PyObject* Py_GetConstant(unsigned int constant_id)47 Similar to :c:func:`Py_GetConstant`, but return a :term:`borrowed51 using :c:func:`Py_GetConstant` is recommended for new code.
1092 PyAPI_FUNC(PyObject*) Py_GetConstant(unsigned int constant_id);
1202 Add :c:func:`Py_GetConstant` and :c:func:`Py_GetConstantBorrowed` functions1203 to get constants. For example, ``Py_GetConstant(Py_CONSTANT_ZERO)`` returns
3050 Py_GetConstant(unsigned int constant_id) in Py_GetConstant() function3066 return Py_GetConstant(constant_id); in Py_GetConstantBorrowed()
58 EXPORT_FUNC(Py_GetConstant)
847 func,Py_GetConstant,3.13,,
989 …<elf-symbol name='Py_GetConstant' type='func-type' binding='global-binding' visibility='default-vi…8569 …Py_GetConstant' mangled-name='Py_GetConstant' filepath='Objects/object.c' line='3050' column='1' v…
2496 [function.Py_GetConstant]
2081 * Add the :c:func:`Py_GetConstant` and :c:func:`Py_GetConstantBorrowed`2084 For example, ``Py_GetConstant(Py_CONSTANT_ZERO)`` returns a strong reference