Searched refs:m_py_obj (Results 1 – 2 of 2) sorted by relevance
73 if (!m_py_obj) in AsLongLong()76 if (!PyLong_Check(m_py_obj)) { in AsLongLong()77 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsLongLong()82 long long r = PyLong_AsLongLong(m_py_obj); in AsLongLong()89 if (!m_py_obj) in AsUnsignedLongLong()92 if (!PyLong_Check(m_py_obj)) { in AsUnsignedLongLong()93 PythonInteger i(PyRefType::Borrowed, m_py_obj); in AsUnsignedLongLong()98 long long r = PyLong_AsUnsignedLongLong(m_py_obj); in AsUnsignedLongLong()106 if (!m_py_obj) in AsModuloUnsignedLongLong()109 if (!PyLong_Check(m_py_obj)) { in AsModuloUnsignedLongLong()[all …]
232 PythonObject() : m_py_obj(nullptr) {}235 m_py_obj = py_obj;240 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed)241 Py_XINCREF(m_py_obj);245 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {}248 m_py_obj = rhs.m_py_obj;249 rhs.m_py_obj = nullptr;255 if (m_py_obj && Py_IsInitialized())256 Py_DECREF(m_py_obj);257 m_py_obj = nullptr;[all …]