Lines Matching refs:Py_REFCNT
1029 if (Py_REFCNT(arg) != 1) { in test_buildvalue_N_error()
1044 if (Py_REFCNT(arg) != 1) { in test_buildvalue_N_error()
1072 if (Py_REFCNT(arg) != 2) { in test_buildvalue_N()
3423 res = PyLong_FromSsize_t(Py_REFCNT(str2)); in argparsing()
3715 assert(Py_REFCNT(self) == 0); in slot_tp_del()
3738 assert(Py_REFCNT(self) > 0); in slot_tp_del()
3739 Py_SET_REFCNT(self, Py_REFCNT(self) - 1); in slot_tp_del()
3740 if (Py_REFCNT(self) == 0) { in slot_tp_del()
3749 Py_ssize_t refcnt = Py_REFCNT(self); in slot_tp_del()
5343 assert(Py_REFCNT(obj) == 1); in negative_refcount()
5511 assert(Py_REFCNT(obj) == 1); \
5516 assert(Py_REFCNT(obj) == 2); \
5522 assert(Py_REFCNT(obj) == 2); \
6804 refcnt = PyLong_FromSsize_t(Py_REFCNT(oldtype)); in heapctypesubclasswithfinalizer_finalize()
6812 refcnt = PyLong_FromSsize_t(Py_REFCNT(newtype)); in heapctypesubclasswithfinalizer_finalize()