Searched refs:py_object (Results 1 – 16 of 16) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
D | test_python_api.py | 23 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)
|
D | test_pep3118.py | 169 (py_object, "<O", (), py_object),
|
D | test_callbacks.py | 106 self.check_type(py_object, o) 109 self.check_type(py_object, o)
|
/third_party/jinja2/ |
D | debug.py | 250 ("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/ |
D | debug.py | 250 ("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/ |
D | base_ref_py.h | 32 explicit PyObjectRef(const py::object &py_object) : BaseRef(), object_(py_object) {} in PyObjectRef() argument
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | scoped_pyobject_ptr.h | 50 explicit ScopedPythonPtr(PyObjectStruct* py_object = NULL) 51 : ptr_(py_object) {} in ptr_() argument
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 154 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/ |
D | test_code.py | 360 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp) 364 GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
|
D | test_threading.py | 236 set_async_exc.argtypes = (ctypes.c_ulong, ctypes.py_object) 241 exception = ctypes.py_object(AsyncExc)
|
D | test_unicode.py | 2553 pythonapi, py_object, sizeof, 2559 _PyUnicode_FromFormat.restype = py_object 2563 py_object(arg) if isinstance(arg, str) else arg
|
D | test_embed.py | 1512 PyFile_NewStdPrinter.restype = ctypes.py_object
|
D | test_bytes.py | 1031 from ctypes import pythonapi, py_object 1040 PyBytes_FromFormat.restype = py_object
|
/third_party/python/Doc/whatsnew/ |
D | 2.5.rst | 1727 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/ |
D | ctypes.rst | 2373 .. class:: py_object
|
/third_party/python/Misc/ |
D | HISTORY | 17470 - The __repr__ method of a NULL ctypes.py_object() no longer raises
|