Home
last modified time | relevance | path

Searched refs:pyobj (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_python_api.py62 pyobj = PyObj_FromPtr(id(s))
63 self.assertIs(s, pyobj)
66 del pyobj
/third_party/libxml2/python/
Dtypes.c689 PyObject *pyobj; in libxml_xmlXPathObjectPtrWrap() local
693 pyobj = libxml_xmlXPathObjectPtrWrap(setobj); in libxml_xmlXPathObjectPtrWrap()
697 PyList_SetItem(list, i, pyobj); in libxml_xmlXPathObjectPtrWrap()
/third_party/flutter/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c2243 SWIG_Python_GetSwigThis(PyObject *pyobj) in SWIG_Python_GetSwigThis() argument
2247 if (SwigPyObject_Check(pyobj)) in SWIG_Python_GetSwigThis()
2248 return (SwigPyObject *) pyobj; in SWIG_Python_GetSwigThis()
2253 if (PyWeakref_CheckProxy(pyobj)) { in SWIG_Python_GetSwigThis()
2254 pyobj = PyWeakref_GET_OBJECT(pyobj); in SWIG_Python_GetSwigThis()
2255 if (pyobj && SwigPyObject_Check(pyobj)) in SWIG_Python_GetSwigThis()
2256 return (SwigPyObject*) pyobj; in SWIG_Python_GetSwigThis()
2265 if (PyInstance_Check(pyobj)) { in SWIG_Python_GetSwigThis()
2266 obj = _PyInstance_Lookup(pyobj, SWIG_This()); in SWIG_Python_GetSwigThis()
2268 PyObject **dictptr = _PyObject_GetDictPtr(pyobj); in SWIG_Python_GetSwigThis()
[all …]
/third_party/skia/third_party/externals/libwebp/swig/
Dlibwebp_python_wrap.c2264 SWIG_Python_GetSwigThis(PyObject *pyobj) in SWIG_Python_GetSwigThis() argument
2268 if (SwigPyObject_Check(pyobj)) in SWIG_Python_GetSwigThis()
2269 return (SwigPyObject *) pyobj; in SWIG_Python_GetSwigThis()
2274 if (PyWeakref_CheckProxy(pyobj)) { in SWIG_Python_GetSwigThis()
2275 pyobj = PyWeakref_GET_OBJECT(pyobj); in SWIG_Python_GetSwigThis()
2276 if (pyobj && SwigPyObject_Check(pyobj)) in SWIG_Python_GetSwigThis()
2277 return (SwigPyObject*) pyobj; in SWIG_Python_GetSwigThis()
2286 if (PyInstance_Check(pyobj)) { in SWIG_Python_GetSwigThis()
2287 obj = _PyInstance_Lookup(pyobj, SWIG_This()); in SWIG_Python_GetSwigThis()
2289 PyObject **dictptr = _PyObject_GetDictPtr(pyobj); in SWIG_Python_GetSwigThis()
[all …]
/third_party/boost/libs/python/doc/
Dtutorial.qbk1307 When you want a `boost::python::object` to manage a pointer to `PyObject*` pyobj one does:
1309 boost::python::object o(boost::python::handle<>(pyobj));
1311 In this case, the `o` object, manages the `pyobj`, it won’t increase the reference count on constru…
1315 boost::python::object o(boost::python::handle<>(boost::python::borrowed(pyobj)));
1317 In this case, `Py_INCREF` is called, so `pyobj` is not destructed when object o goes out of scope.
Dfaq.qbk255 >>> pyobj = MyClass()
256 >>> pyobj.MyBuggyFunction()