Searched refs:Py_SET_REFCNT (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Objects/ |
D | object.c | 231 Py_SET_REFCNT(self, 1); in PyObject_CallFinalizerFromDealloc() 241 Py_SET_REFCNT(self, Py_REFCNT(self) - 1); in PyObject_CallFinalizerFromDealloc() 250 Py_SET_REFCNT(self, refcnt); in PyObject_CallFinalizerFromDealloc() 1899 Py_SET_REFCNT(op, 1); in _Py_NewReference()
|
D | moduleobject.c | 53 Py_SET_REFCNT(def, 1); in PyModuleDef_Init()
|
D | unicodeobject.c | 1962 Py_SET_REFCNT(unicode, 3); in unicode_dealloc() 1968 Py_SET_REFCNT(unicode, 0); in unicode_dealloc() 15884 Py_SET_REFCNT(s, Py_REFCNT(s) - 2); in PyUnicode_InternInPlace() 15953 Py_SET_REFCNT(s, Py_REFCNT(s) + 1); in _PyUnicode_ClearInterned() 15961 Py_SET_REFCNT(s, Py_REFCNT(s) + 2); in _PyUnicode_ClearInterned()
|
/third_party/python/Include/ |
D | object.h | 154 #define Py_SET_REFCNT(ob, refcnt) _Py_SET_REFCNT(_PyObject_CAST(ob), refcnt) macro
|
/third_party/python/Doc/c-api/ |
D | structures.rst | 126 Use :c:func:`Py_SET_REFCNT()` to set an object reference count. 129 .. c:function:: void Py_SET_REFCNT(PyObject *o, Py_ssize_t refcnt)
|
/third_party/python/Modules/ |
D | _testcapimodule.c | 3716 Py_SET_REFCNT(self, 1); in slot_tp_del() 3739 Py_SET_REFCNT(self, Py_REFCNT(self) - 1); in slot_tp_del() 3751 Py_SET_REFCNT(self, refcnt); in slot_tp_del() 4826 Py_SET_REFCNT(op, 1); in check_pyobject_uninitialized_is_freed() 4841 Py_SET_REFCNT(op, 1); in check_pyobject_forbidden_bytes_is_freed() 4861 Py_SET_REFCNT(op, 1); in check_pyobject_freed_is_freed() 5345 Py_SET_REFCNT(obj, 0); in negative_refcount()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 878 Add a :c:func:`Py_SET_REFCNT` function to set the reference counter of an
|
D | 3.10.0a1.rst | 3488 :c:func:`Py_SET_REFCNT` and :c:func:`Py_SET_SIZE` to set an object reference
|
/third_party/python/Doc/whatsnew/ |
D | 3.10.rst | 2136 ``Py_REFCNT(obj) = new_refcnt`` must be replaced with ``Py_SET_REFCNT(obj, new_refcnt)``: 2137 see :c:func:`Py_SET_REFCNT()` (available since Python 3.9). For backward 2141 # define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)
|