Home
last modified time | relevance | path

Searched refs:PyObject_GetAttrString (Results 1 – 25 of 135) sorted by relevance

123456

/external/python/cpython3/Modules/_xxtestfuzz/
Dfuzzer.c92 struct_error = PyObject_GetAttrString(struct_module, "error"); in init_struct_unpack()
96 struct_unpack_method = PyObject_GetAttrString(struct_module, "unpack"); in init_struct_unpack()
155 json_loads_method = PyObject_GetAttrString(json_module, "loads"); in init_json_loads()
201 sre_compile_method = PyObject_GetAttrString(sre_compile_module, "compile"); in init_sre_compile()
210 sre_error_exception = PyObject_GetAttrString(sre_constants, "error"); in init_sre_compile()
214 PyObject* debug_flag = PyObject_GetAttrString(sre_constants, "SRE_FLAG_DEBUG"); in init_sre_compile()
328 PyObject* match_callable = PyObject_GetAttrString(pattern, "match"); in fuzz_sre_match()
348 csv_error = PyObject_GetAttrString(csv_module, "Error"); in init_csv_reader()
/external/python/cpython2/Python/
DPython-ast.c393 fields = PyObject_GetAttrString((PyObject*)Py_TYPE(self), "_fields"); in ast_type_init()
443 PyObject *dict = PyObject_GetAttrString(self, "__dict__"); in ast_type_reduce()
3341 tmp = PyObject_GetAttrString(obj, "body"); in obj2ast_mod()
3381 tmp = PyObject_GetAttrString(obj, "body"); in obj2ast_mod()
3419 tmp = PyObject_GetAttrString(obj, "body"); in obj2ast_mod()
3444 tmp = PyObject_GetAttrString(obj, "body"); in obj2ast_mod()
3497 tmp = PyObject_GetAttrString(obj, "lineno"); in obj2ast_stmt()
3509 tmp = PyObject_GetAttrString(obj, "col_offset"); in obj2ast_stmt()
3531 tmp = PyObject_GetAttrString(obj, "name"); in obj2ast_stmt()
3543 tmp = PyObject_GetAttrString(obj, "args"); in obj2ast_stmt()
[all …]
Dpythonrun.c1009 *message = PyObject_GetAttrString(err, "msg"); in parse_syntax_error()
1013 v = PyObject_GetAttrString(err, "filename"); in parse_syntax_error()
1027 v = PyObject_GetAttrString(err, "lineno"); in parse_syntax_error()
1036 v = PyObject_GetAttrString(err, "offset"); in parse_syntax_error()
1050 v = PyObject_GetAttrString(err, "text"); in parse_syntax_error()
1129 PyObject *code = PyObject_GetAttrString(value, "code"); in handle_system_exit()
1285 moduleName = PyObject_GetAttrString(exception, "__module__"); in PyErr_Display()
Dcodecs.c228 inccodec = PyObject_GetAttrString(codec_info, attrname); in codec_makeincrementalcodec()
468 attr = PyObject_GetAttrString(codec, "_is_text_encoding"); in _PyCodec_LookupTextEncoding()
599 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type()
601 PyObject *name = PyObject_GetAttrString(type, "__name__"); in wrong_exception_type()
/external/tensorflow/tensorflow/python/util/
Dutil.cc277 Safe_PyObjectPtr cls(PyObject_GetAttrString(to_check, "__class__")); in IsAttrsHelper()
516 cls_.reset(PyObject_GetAttrString(nested_.get(), "__class__")); in AttrsValueIterator()
518 attrs_.reset(PyObject_GetAttrString(cls_.get(), "__attrs_attrs__")); in AttrsValueIterator()
530 Safe_PyObjectPtr name(PyObject_GetAttrString(item.get(), "name")); in next()
629 Safe_PyObjectPtr spec(PyObject_GetAttrString(nested, "_type_spec")); in GetValueIteratorForComposite()
645 Safe_PyObjectPtr specs(PyObject_GetAttrString(nested, "_component_specs")); in GetValueIteratorForComposite()
749 o1_wrapped.reset(PyObject_GetAttrString(o1, "__wrapped__")); in AssertSameStructureHelper()
754 o2_wrapped.reset(PyObject_GetAttrString(o2, "__wrapped__")); in AssertSameStructureHelper()
851 owned_type_spec_1.reset(PyObject_GetAttrString(o1, "_type_spec")); in AssertSameStructureHelper()
858 owned_type_spec_2.reset(PyObject_GetAttrString(o2, "_type_spec")); in AssertSameStructureHelper()
[all …]
/external/python/cffi/c/
Dfile_emulator.h12 PyIOBase_TypeObj = PyObject_GetAttrString(io, "_IOBase"); in init_file_emulator()
43 ob_capsule = PyObject_GetAttrString(ob_file, "__cffi_FILE"); in PyFile_AsFile()
51 ob_mode = PyObject_GetAttrString(ob_file, "mode"); in PyFile_AsFile()
Dcffi1_module.c104 included_ffi = PyObject_GetAttrString(m, "ffi"); in make_included_tuples()
108 PyObject_GetAttrString(m, "lib"); in make_included_tuples()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c258 pickle_dumps = PyObject_GetAttrString(temp, "dumps"); in init_multiprocessing()
259 pickle_loads = PyObject_GetAttrString(temp, "loads"); in init_multiprocessing()
260 pickle_protocol = PyObject_GetAttrString(temp, "HIGHEST_PROTOCOL"); in init_multiprocessing()
267 BufferTooShort = PyObject_GetAttrString(temp, "BufferTooShort"); in init_multiprocessing()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc134 PyObject_GetAttrString(py_database_, "FindFileContainingExtension")); in FindFileContainingExtension()
153 PyObject_GetAttrString(py_database_, "FindAllExtensionNumbers")); in FindAllExtensionNumbers()
/external/libchrome/third_party/markupsafe/
D_speedups.c49 markup = PyObject_GetAttrString(module, "Markup"); in init_constants()
132 html = PyObject_GetAttrString(text, "__html__"); in escape()
/external/python/cpython3/Python/
Dimportdl.c102 name_unicode = PyObject_GetAttrString(spec, "name"); in _PyImport_LoadDynamicModuleWithSpec()
118 path = PyObject_GetAttrString(spec, "origin"); in _PyImport_LoadDynamicModuleWithSpec()
/external/python/cpython2/Modules/
Dfuture_builtins.c98 iter_func = PyObject_GetAttrString(itertools, *cur_func); in initfuture_builtins()
D_json.c375 errmsg_fn = PyObject_GetAttrString(decoder, "errmsg"); in raise_errmsg()
397 joinfn = PyObject_GetAttrString(ustr, "join"); in join_list_unicode()
1718 s->encoding = PyObject_GetAttrString(ctx, "encoding"); in scanner_new()
1740 s->strict = PyObject_GetAttrString(ctx, "strict"); in scanner_new()
1743 s->object_hook = PyObject_GetAttrString(ctx, "object_hook"); in scanner_new()
1746 s->pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook"); in scanner_new()
1749 s->parse_float = PyObject_GetAttrString(ctx, "parse_float"); in scanner_new()
1752 s->parse_int = PyObject_GetAttrString(ctx, "parse_int"); in scanner_new()
1755 s->parse_constant = PyObject_GetAttrString(ctx, "parse_constant"); in scanner_new()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc301 PyObject_GetAttrString(py_value, "_value")); in ParseDimensionValue()
361 PyObject_GetAttrString(py_value, "_type_enum")); in ParseTypeValue()
496 PyObject* name_attr = PyObject_GetAttrString(py_value.get(), "name"); in SetOpAttrList()
704 PyObject* name_attr = PyObject_GetAttrString(py_value, "name"); in SetOpAttrScalar()
1106 PyObject* id_field = PyObject_GetAttrString(tensor, "_id"); in FastTensorId()
1198 num_elements_ = PyObject_GetAttrString(py_vspace_, "num_elements_fn"); in Initialize()
1202 aggregate_fn_ = PyObject_GetAttrString(py_vspace_, "aggregate_fn"); in Initialize()
1206 zeros_fn_ = PyObject_GetAttrString(py_vspace_, "zeros_fn"); in Initialize()
1210 zeros_like_fn_ = PyObject_GetAttrString(py_vspace_, "zeros_like_fn"); in Initialize()
1214 ones_fn_ = PyObject_GetAttrString(py_vspace_, "ones_fn"); in Initialize()
[all …]
/external/python/cpython2/Doc/includes/
Drun-func.c23 pFunc = PyObject_GetAttrString(pModule, argv[2]); in main()
Dcapsulethunk.h104 PyObject *object2 = PyObject_GetAttrString(object, trace); in PyCapsule_Import()
/external/python/cpython3/Doc/includes/
Drun-func.c24 pFunc = PyObject_GetAttrString(pModule, argv[2]); in main()
/external/python/cpython2/Objects/
Dobject.c1134 PyObject_GetAttrString(PyObject *v, const char *name) in PyObject_GetAttrString() function
1151 PyObject *res = PyObject_GetAttrString(v, name); in PyObject_HasAttrString()
1668 PyObject *call = PyObject_GetAttrString(x, "__call__"); in PyCallable_Check()
1703 classdict = PyObject_GetAttrString(aclass, "__dict__"); in merge_class_dict()
1714 bases = PyObject_GetAttrString(aclass, "__bases__"); in merge_class_dict()
1761 list = PyObject_GetAttrString(obj, attrname); in merge_list_attr()
1839 PyObject *dict = PyObject_GetAttrString(obj, "__dict__"); in _specialized_dir_module()
1868 dict = PyObject_GetAttrString(obj, "__dict__"); in _generic_dir()
1895 itsclass = PyObject_GetAttrString(obj, "__class__"); in _generic_dir()
1925 dirfunc = PyObject_GetAttrString(obj, "__dir__"); in _dir_object()
Dcobject.c105 if ((c = PyObject_GetAttrString(m,name))) { in PyCObject_Import()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c195 fields = PyObject_GetAttrString(descr->proto, "_fields_"); in MakeFields()
272 anon = PyObject_GetAttrString(type, "_anonymous_"); in MakeAnonFields()
352 isPacked = PyObject_GetAttrString(type, "_pack_"); in PyCStructUnionType_update_stgdict()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc57 PyObject_GetAttrString(tb_module, "format_exception"); in TryAppendTraceback()
Dpy_func.cc201 PyObject_GetAttrString(trampoline, "_ctx"), nullptr)); in DoCallPyFunc()
240 PyObject_GetAttrString(trampoline, "_ctx"), /*name=*/nullptr)); in DoCallPyFunc()
/external/python/cpython3/Modules/
D_zoneinfo.c249 PyObject_GetAttrString((PyObject *)type, "_weak_cache"); in get_weak_cache()
577 PyObject *replace = PyObject_GetAttrString(tmp, "replace"); in zoneinfo_fromutc()
662 PyObject_GetAttrString(pickle, "PicklingError"); in zoneinfo_reduce()
675 PyObject *constructor = PyObject_GetAttrString(obj_self, "_unpickle"); in zoneinfo_reduce()
2219 num = PyObject_GetAttrString(dt, "hour"); in get_local_timestamp()
2229 num = PyObject_GetAttrString(dt, "minute"); in get_local_timestamp()
2239 num = PyObject_GetAttrString(dt, "second"); in get_local_timestamp()
2642 PyObject_GetAttrString(_tzpath_module, "find_tzfile"); in zoneinfomodule_exec()
2653 io_open = PyObject_GetAttrString(io_module, "open"); in zoneinfomodule_exec()
D_json.c326 JSONDecodeError = PyObject_GetAttrString(decoder, "JSONDecodeError"); in raise_errmsg()
1181 strict = PyObject_GetAttrString(ctx, "strict"); in scanner_new()
1188 s->object_hook = PyObject_GetAttrString(ctx, "object_hook"); in scanner_new()
1191 s->object_pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook"); in scanner_new()
1194 s->parse_float = PyObject_GetAttrString(ctx, "parse_float"); in scanner_new()
1197 s->parse_int = PyObject_GetAttrString(ctx, "parse_int"); in scanner_new()
1200 s->parse_constant = PyObject_GetAttrString(ctx, "parse_constant"); in scanner_new()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h254 cofunc = PyObject_GetAttrString(mod, "__create_codec"); in getmultibytecodec()
371 o = PyObject_GetAttrString(mod, symbol); in importmap()

123456