Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/ctypes/test/
Dtest_python_api.py23 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)
Dtest_pep3118.py139 (py_object, "<O", None, py_object),
Dtest_callbacks.py110 self.check_type(py_object, o)
113 self.check_type(py_object, o)
/external/python/cpython2/Lib/ctypes/
D__init__.py156 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/
Dcindex.py2898 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/
Dmisc.py572 obj_pyobj = ctypes.cast(obj_id, ctypes.py_object)
/external/python/cpython2/Lib/test/
Dtest_threading.py177 exception = ctypes.py_object(AsyncExc)
Dtest_unicode.py1679 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/
D2.5.rst1726 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/
Dctypes.rst2378 .. class:: py_object
/external/python/cpython2/Misc/
DHISTORY86 - The __repr__ method of a NULL ctypes.py_object() no longer raises