Lines Matching refs:Owned

96   return PythonString(PyRefType::Owned, repr);  in Repr()
105 return PythonString(PyRefType::Owned, str); in Str()
167 return PythonObject(PyRefType::Owned, in GetAttributeValue()
263 PythonObject::Reset(PyRefType::Owned, py_bytes); in SetBytes()
280 Reset(PyRefType::Owned, PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()
386 result.Reset(PyRefType::Owned, PyUnicode_AsUTF8String(result.get())); in Reset()
424 PythonObject::Reset(PyRefType::Owned, unicode); in SetString()
427 PythonObject::Reset(PyRefType::Owned, str); in SetString()
488 result.Reset(PyRefType::Owned, PyLong_FromLongLong(PyInt_AsLong(py_obj))); in Reset()
520 PythonObject::Reset(PyRefType::Owned, PyLong_FromLongLong(value)); in SetInteger()
535 Reset(PyRefType::Owned, PyList_New(0)); in PythonList()
539 Reset(PyRefType::Owned, PyList_New(list_size)); in PythonList()
616 Reset(PyRefType::Owned, PyTuple_New(0)); in PythonTuple()
620 Reset(PyRefType::Owned, PyTuple_New(tuple_size)); in PythonTuple()
712 Reset(PyRefType::Owned, PyDict_New()); in PythonDictionary()
755 return PythonList(PyRefType::Owned, PyDict_Keys(m_py_obj)); in GetKeys()
813 return PythonModule(PyRefType::Owned, PyImport_ImportModule(str.c_str())); in ImportModule()
916 return PythonObject(PyRefType::Owned, PyObject_CallObject(m_py_obj, nullptr)); in operator ()()
922 return PythonObject(PyRefType::Owned, in operator ()()
929 return PythonObject(PyRefType::Owned, in operator ()()
958 PythonObject io_module(PyRefType::Owned, PyImport_ImportModule("io")); in Check()
963 PythonObject object_type(PyRefType::Owned, PyObject_Type(py_obj)); in Check()
997 Reset(PyRefType::Owned, PyFile_FromFd(file.GetDescriptor(), nullptr, cmode, in Reset()
1001 Reset(PyRefType::Owned, in Reset()