Home
last modified time | relevance | path

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

12

/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.py166 (py_object, "<O", None, py_object),
Dtest_callbacks.py110 self.check_type(py_object, o)
113 self.check_type(py_object, o)
/external/python/cpython3/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.py104 self.check_type(py_object, o)
107 self.check_type(py_object, o)
/external/tensorflow/tensorflow/tools/docs/
Dparser.py38 def is_free_function(py_object, full_name, index): argument
50 if not tf_inspect.isfunction(py_object):
127 def _get_raw_docstring(py_object): argument
139 if (tf_inspect.isclass(py_object) or tf_inspect.ismethod(py_object) or
140 tf_inspect.isfunction(py_object) or tf_inspect.ismodule(py_object) or
141 isinstance(py_object, property)):
142 return tf_inspect.getdoc(py_object) or ''
604 def _parse_md_docstring(py_object, relative_path_to_root, reference_resolver): argument
630 raw_docstring = _get_raw_docstring(py_object)
1492 def docs_for_object(full_name, py_object, parser_config): argument
[all …]
Ddoc_generator_visitor.py238 for full_name, py_object in six.iteritems(self._index):
242 if (py_object is not None and
243 not isinstance(py_object, six.integer_types + six.string_types +
245 and py_object is not ()): # pylint: disable=literal-comparison
246 object_id = id(py_object)
Dparser_test.py179 full_name='TestClass', py_object=TestClass, parser_config=parser_config)
232 py_object=namedtupleclass,
282 full_name='Child', py_object=Child, parser_config=parser_config)
336 py_object=ChildMessage,
376 py_object=test_module,
419 py_object=test_function,
458 py_object=test_function_with_args_kwargs,
Dgenerate_lib.py87 for full_name, py_object in six.iteritems(parser_config.index):
94 if not (tf_inspect.ismodule(py_object) or tf_inspect.isclass(py_object) or
95 parser.is_free_function(py_object, full_name, parser_config.index)):
106 if tf_inspect.ismodule(py_object):
121 page_info = parser.docs_for_object(full_name, py_object, parser_config)
/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")
501 _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr)
505 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr)
517 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_addr)
/external/python/cpython3/Lib/ctypes/
D__init__.py151 class py_object(_SimpleCData): class
158 _check_size(py_object, "P")
488 _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr)
492 _string_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_string_at_addr)
504 _wstring_at = PYFUNCTYPE(py_object, c_void_p, c_int)(_wstring_at_addr)
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc358 PyObject* py_object = in GetTensor() local
361 if (py_object == nullptr) { in GetTensor()
366 PyArrayObject* py_array = reinterpret_cast<PyArrayObject*>(py_object); in GetTensor()
374 Py_DECREF(py_object); in GetTensor()
384 return py_object; in GetTensor()
Dpython_utils.cc26 void operator()(PyObject* py_object) const { Py_DECREF(py_object); } in operator ()()
/external/python/cpython3/Lib/test/
Dtest_code.py275 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp)
279 GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
Dtest_threading.py185 set_async_exc.argtypes = (ctypes.c_ulong, ctypes.py_object)
190 exception = ctypes.py_object(AsyncExc)
Dtest_unicode.py2450 pythonapi, py_object, sizeof,
2455 _PyUnicode_FromFormat.restype = py_object
2459 py_object(arg) if isinstance(arg, str) else arg
Dtest_bytes.py898 from ctypes import pythonapi, py_object
906 PyBytes_FromFormat.restype = py_object
/external/bcc/src/python/bcc/
Dlibbcc.py88 _RAW_CB_TYPE = ct.CFUNCTYPE(None, ct.py_object, ct.c_void_p, ct.c_int)
89 _LOST_CB_TYPE = ct.CFUNCTYPE(None, ct.py_object, ct.c_ulonglong)
106 lib.bpf_open_perf_buffer.argtypes = [_RAW_CB_TYPE, _LOST_CB_TYPE, ct.py_object, ct.c_int, ct.c_int,…
/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/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/cpython3/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
/external/python/cpython2/Doc/library/
Dctypes.rst2378 .. class:: py_object

12