Searched refs:py_object (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython2/Lib/ctypes/test/ |
D | test_python_api.py | 23 PyString_FromStringAndSize.restype = py_object 29 pythonapi.PyString_FromString.restype = py_object 46 pythonapi.PyInt_FromLong.restype = py_object 51 pythonapi.PyInt_AsLong.argtypes = (py_object,) 85 self.assertEqual(repr(py_object()), "py_object(<NULL>)") 86 self.assertEqual(repr(py_object(42)), "py_object(42)") 87 self.assertEqual(repr(py_object(object)), "py_object(%r)" % object)
|
D | test_pep3118.py | 139 (py_object, "<O", None, py_object),
|
D | test_callbacks.py | 110 self.check_type(py_object, o) 113 self.check_type(py_object, o)
|
/external/python/cpython2/Lib/ctypes/ |
D | __init__.py | 156 class py_object(_SimpleCData): class 160 return super(py_object, self).__repr__() 163 _check_size(py_object, "P") 497 _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr) 501 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr) 513 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_addr)
|
/external/clang/bindings/python/clang/ |
D | cindex.py | 2898 POINTER(SourceLocation), c_uint, py_object) 2899 callbacks['cursor_visit'] = CFUNCTYPE(c_int, Cursor, Cursor, py_object) 2900 callbacks['fields_visit'] = CFUNCTYPE(c_int, Cursor, py_object) 3283 [TranslationUnit, callbacks['translation_unit_includes'], py_object]), 3500 [Cursor, callbacks['cursor_visit'], py_object], 3582 [Type, callbacks['fields_visit'], py_object],
|
/external/devlib/devlib/utils/ |
D | misc.py | 572 obj_pyobj = ctypes.cast(obj_id, ctypes.py_object)
|
/external/python/cpython2/Lib/test/ |
D | test_threading.py | 177 exception = ctypes.py_object(AsyncExc)
|
D | test_unicode.py | 1679 pythonapi, py_object, sizeof, 1687 _PyUnicode_FromFormat.restype = py_object 1691 py_object(arg) if isinstance(arg, unicode) else arg
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.5.rst | 1726 calling into the interpreter's code. There's a :class:`py_object()` type 1732 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d), 1733 ctypes.py_object("abc"), ctypes.py_object(1)) 1736 Don't forget to use :class:`py_object()`; if it's omitted you end up with a
|
/external/python/cpython2/Doc/library/ |
D | ctypes.rst | 2378 .. class:: py_object
|
/external/python/cpython2/Misc/ |
D | HISTORY | 86 - The __repr__ method of a NULL ctypes.py_object() no longer raises
|