Home
last modified time | relevance | path

Searched refs:py_object (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_python_api.py23 PyBytes_FromStringAndSize.restype = py_object
30 pythonapi.PyBytes_FromString.restype = py_object
44 pythonapi.PyLong_FromLong.restype = py_object
49 pythonapi.PyLong_AsLong.argtypes = (py_object,)
84 self.assertEqual(repr(py_object()), "py_object(<NULL>)")
85 self.assertEqual(repr(py_object(42)), "py_object(42)")
86 self.assertEqual(repr(py_object(object)), "py_object(%r)" % object)
Dtest_pep3118.py169 (py_object, "<O", (), py_object),
Dtest_callbacks.py106 self.check_type(py_object, o)
109 self.check_type(py_object, o)
/third_party/jinja2/
Ddebug.py250 ("tb_next", ctypes.py_object),
258 c_tb_next = ctypes.py_object(tb.tb_next)
259 c_tb.tb_next = ctypes.py_object()
264 c_tb_next = ctypes.py_object(tb_next)
/third_party/skia/third_party/externals/jinja2/
Ddebug.py250 ("tb_next", ctypes.py_object),
258 c_tb_next = ctypes.py_object(tb.tb_next)
259 c_tb.tb_next = ctypes.py_object()
264 c_tb_next = ctypes.py_object(tb_next)
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dbase_ref_py.h32 explicit PyObjectRef(const py::object &py_object) : BaseRef(), object_(py_object) {} in PyObjectRef() argument
/third_party/protobuf/python/google/protobuf/pyext/
Dscoped_pyobject_ptr.h50 explicit ScopedPythonPtr(PyObjectStruct* py_object = NULL)
51 : ptr_(py_object) {} in ptr_() argument
/third_party/python/Lib/ctypes/
D__init__.py154 class py_object(_SimpleCData): class
161 _check_size(py_object, "P")
508 _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr)
512 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr)
524 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_addr)
/third_party/python/Lib/test/
Dtest_code.py360 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp)
364 GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
Dtest_threading.py236 set_async_exc.argtypes = (ctypes.c_ulong, ctypes.py_object)
241 exception = ctypes.py_object(AsyncExc)
Dtest_unicode.py2553 pythonapi, py_object, sizeof,
2559 _PyUnicode_FromFormat.restype = py_object
2563 py_object(arg) if isinstance(arg, str) else arg
Dtest_embed.py1512 PyFile_NewStdPrinter.restype = ctypes.py_object
Dtest_bytes.py1031 from ctypes import pythonapi, py_object
1040 PyBytes_FromFormat.restype = py_object
/third_party/python/Doc/whatsnew/
D2.5.rst1727 calling into the interpreter's code. There's a :class:`py_object()` type
1733 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d),
1734 ctypes.py_object("abc"), ctypes.py_object(1))
1737 Don't forget to use :class:`py_object()`; if it's omitted you end up with a
/third_party/python/Doc/library/
Dctypes.rst2373 .. class:: py_object
/third_party/python/Misc/
DHISTORY17470 - The __repr__ method of a NULL ctypes.py_object() no longer raises