Home
last modified time | relevance | path

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

1234567

/aosp_15_r20/external/AFLplusplus/src/
H A Dafl-fuzz-python.c223 py_functions[PY_FUNC_INIT] = PyObject_GetAttrString(py_module, "init"); in init_py_module()
230 py_functions[PY_FUNC_FUZZ] = PyObject_GetAttrString(py_module, "fuzz"); in init_py_module()
232 py_functions[PY_FUNC_FUZZ] = PyObject_GetAttrString(py_module, "mutate"); in init_py_module()
234 PyObject_GetAttrString(py_module, "describe"); in init_py_module()
236 PyObject_GetAttrString(py_module, "fuzz_count"); in init_py_module()
238 PyObject_GetAttrString(py_module, "post_process"); in init_py_module()
240 PyObject_GetAttrString(py_module, "init_trim"); in init_py_module()
242 PyObject_GetAttrString(py_module, "post_trim"); in init_py_module()
243 py_functions[PY_FUNC_TRIM] = PyObject_GetAttrString(py_module, "trim"); in init_py_module()
245 PyObject_GetAttrString(py_module, "havoc_mutation"); in init_py_module()
[all …]
/aosp_15_r20/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()
/aosp_15_r20/external/tensorflow/tensorflow/python/util/
H A Dutil.cc275 Safe_PyObjectPtr cls(PyObject_GetAttrString(to_check, "__class__")); in IsAttrsHelper()
529 cls_.reset(PyObject_GetAttrString(nested_.get(), "__class__")); in AttrsValueIterator()
531 attrs_.reset(PyObject_GetAttrString(cls_.get(), "__attrs_attrs__")); in AttrsValueIterator()
543 Safe_PyObjectPtr name(PyObject_GetAttrString(item.get(), "name")); in next()
642 Safe_PyObjectPtr spec(PyObject_GetAttrString(nested, "_type_spec")); in GetValueIteratorForComposite()
658 Safe_PyObjectPtr specs(PyObject_GetAttrString(nested, "_component_specs")); in GetValueIteratorForComposite()
762 o1_wrapped.reset(PyObject_GetAttrString(o1, "__wrapped__")); in AssertSameStructureHelper()
767 o2_wrapped.reset(PyObject_GetAttrString(o2, "__wrapped__")); in AssertSameStructureHelper()
864 owned_type_spec_1.reset(PyObject_GetAttrString(o1, "_type_spec")); in AssertSameStructureHelper()
871 owned_type_spec_2.reset(PyObject_GetAttrString(o2, "_type_spec")); in AssertSameStructureHelper()
[all …]
/aosp_15_r20/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()
404 ast_literal_eval_method = PyObject_GetAttrString(ast_module, "literal_eval"); in init_ast_literal_eval()
/aosp_15_r20/external/pytorch/torch/csrc/
H A DDynamicTypes.cpp74 PyObject_GetAttrString(storage_module, "TypedStorage"); in loadTypedStorageTypeObject()
77 PyObject_GetAttrString(storage_module, "TypedStorage")); in loadTypedStorageTypeObject()
103 PyObject* dtype_obj = PyObject_GetAttrString(obj, "dtype"); in createStorageGetType()
109 untyped_storage_obj = PyObject_GetAttrString(obj, "_untyped_storage"); in createStorageGetType()
/aosp_15_r20/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()
/aosp_15_r20/external/pytorch/torch/csrc/autograd/
H A Dpython_function.cpp147 THPObjectPtr apply_fn(PyObject_GetAttrString(obj, "apply")); in apply()
259 THPObjectPtr forward_class{PyObject_GetAttrString(obj, "_forward_cls")}; in is_traceable()
263 PyObject_GetAttrString(forward_class, "is_traceable")}; in is_traceable()
666 PyObject_GetAttrString((PyObject*)self, "apply_jvp")); in _wrap_outputs()
702 THPObjectPtr py_view_as_method(PyObject_GetAttrString(py_x, "view_as")); in _wrap_outputs()
1264 THPObjectPtr(PyObject_GetAttrString(module, "_SingleLevelFunction")); in get_base_setup_context()
1270 auto setup_context = PyObject_GetAttrString(function, "setup_context"); in get_base_setup_context()
1304 THPObjectPtr backward_cls(PyObject_GetAttrString(cls, "_backward_cls")); in THPFunction_apply()
1329 THPObjectPtr(PyObject_GetAttrString(cls, "setup_context")); in THPFunction_apply()
1346 THPObjectPtr forward_fn(PyObject_GetAttrString(cls, "forward")); in THPFunction_apply()
[all …]
/aosp_15_r20/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()
Dclassobject.c1428 PyObject *func = PyObject_GetAttrString(v, opname); in generic_binary_op()
1903 func = PyObject_GetAttrString(v, "__pow__"); in instance_pow()
1938 func = PyObject_GetAttrString(v, "__ipow__"); in instance_ipow()
2129 PyObject *res, *call = PyObject_GetAttrString(func, "__call__"); in instance_call()
2423 funcname = PyObject_GetAttrString(func, "__name__"); in instancemethod_repr()
2438 klassname = PyObject_GetAttrString(klass, "__name__"); in instancemethod_repr()
2511 name = PyObject_GetAttrString(klass, "__name__"); in getclassname()
2535 klass = PyObject_GetAttrString(inst, "__class__"); in getinstclassname()
/aosp_15_r20/external/tensorflow/tensorflow/python/eager/
H A Dpywrap_tfe_src.cc303 PyObject_GetAttrString(py_value, "_value")); in ParseDimensionValue()
371 PyObject_GetAttrString(py_value, "_type_enum")); in ParseTypeValue()
505 PyObject* name_attr = PyObject_GetAttrString(py_value.get(), "name"); in SetOpAttrList()
715 PyObject* name_attr = PyObject_GetAttrString(py_value, "name"); in SetOpAttrScalar()
1146 PyObject* id_field = PyObject_GetAttrString(tensor, "_id"); in FastTensorId()
1237 num_elements_ = PyObject_GetAttrString(py_vspace_, "num_elements_fn"); in Initialize()
1241 aggregate_fn_ = PyObject_GetAttrString(py_vspace_, "aggregate_fn"); in Initialize()
1245 zeros_fn_ = PyObject_GetAttrString(py_vspace_, "zeros_fn"); in Initialize()
1249 zeros_like_fn_ = PyObject_GetAttrString(py_vspace_, "zeros_like_fn"); in Initialize()
1253 ones_fn_ = PyObject_GetAttrString(py_vspace_, "ones_fn"); in Initialize()
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_database.cc136 PyObject_GetAttrString(py_database_, "FindFileContainingExtension")); in FindFileContainingExtension()
155 PyObject_GetAttrString(py_database_, "FindAllExtensionNumbers")); in FindAllExtensionNumbers()
/aosp_15_r20/external/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_database.cc136 PyObject_GetAttrString(py_database_, "FindFileContainingExtension")); in FindFileContainingExtension()
155 PyObject_GetAttrString(py_database_, "FindAllExtensionNumbers")); in FindAllExtensionNumbers()
/aosp_15_r20/external/python/cpython3/Modules/
D_zoneinfo.c254 PyObject_GetAttrString((PyObject *)type, "_weak_cache"); in get_weak_cache()
583 PyObject *replace = PyObject_GetAttrString(tmp, "replace"); in zoneinfo_fromutc()
668 PyObject_GetAttrString(pickle, "PicklingError"); in zoneinfo_reduce()
681 PyObject *constructor = PyObject_GetAttrString(obj_self, "_unpickle"); in zoneinfo_reduce()
2227 num = PyObject_GetAttrString(dt, "hour"); in get_local_timestamp()
2237 num = PyObject_GetAttrString(dt, "minute"); in get_local_timestamp()
2247 num = PyObject_GetAttrString(dt, "second"); in get_local_timestamp()
2666 PyObject_GetAttrString(_tzpath_module, "find_tzfile"); in zoneinfomodule_exec()
2677 io_open = PyObject_GetAttrString(io_module, "open"); in zoneinfomodule_exec()
D_elementtree.c3672 self->handle_start_ns = PyObject_GetAttrString(target, "start_ns"); in _elementtree_XMLParser___init___impl()
3676 self->handle_end_ns = PyObject_GetAttrString(target, "end_ns"); in _elementtree_XMLParser___init___impl()
3680 self->handle_start = PyObject_GetAttrString(target, "start"); in _elementtree_XMLParser___init___impl()
3684 self->handle_data = PyObject_GetAttrString(target, "data"); in _elementtree_XMLParser___init___impl()
3688 self->handle_end = PyObject_GetAttrString(target, "end"); in _elementtree_XMLParser___init___impl()
3692 self->handle_comment = PyObject_GetAttrString(target, "comment"); in _elementtree_XMLParser___init___impl()
3696 self->handle_pi = PyObject_GetAttrString(target, "pi"); in _elementtree_XMLParser___init___impl()
3700 self->handle_close = PyObject_GetAttrString(target, "close"); in _elementtree_XMLParser___init___impl()
3704 self->handle_doctype = PyObject_GetAttrString(target, "doctype"); in _elementtree_XMLParser___init___impl()
3941 reader = PyObject_GetAttrString(file, "read"); in _elementtree_XMLParser__parse_whole()
[all …]
/aosp_15_r20/external/pytorch/torch/csrc/tensor/
H A Dpython_tensor.cpp232 PyObject_GetAttrString(module_obj.get(), storage_name.c_str())); in get_storage_obj()
265 auto tensor_class = THPObjectPtr(PyObject_GetAttrString(torch, "Tensor")); in get_tensor_dict()
398 PyObject_GetAttrString(torch_module.get(), "_tensor_classes")); in py_bind_tensor_types()
/aosp_15_r20/external/python/cpython2/Modules/
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()
D_elementtree.c198 function = PyObject_GetAttrString(joiner, "join"); in list_join()
2602 self->handle_xml = PyObject_GetAttrString(target, "xml");
2607 self->handle_start = PyObject_GetAttrString(target, "start");
2612 self->handle_data = PyObject_GetAttrString(target, "data");
2617 self->handle_end = PyObject_GetAttrString(target, "end");
2622 self->handle_comment = PyObject_GetAttrString(target, "comment");
2627 self->handle_pi = PyObject_GetAttrString(target, "pi");
2632 self->handle_close = PyObject_GetAttrString(target, "close");
2769 reader = PyObject_GetAttrString(fileobj, "read");
/aosp_15_r20/external/libchrome/third_party/markupsafe/
H A D_speedups.c49 markup = PyObject_GetAttrString(module, "Markup"); in init_constants()
132 html = PyObject_GetAttrString(text, "__html__"); in escape()
/aosp_15_r20/external/python/cpython3/Python/
Dimportdl.c107 name_unicode = PyObject_GetAttrString(spec, "name"); in _PyImport_LoadDynamicModuleWithSpec()
123 path = PyObject_GetAttrString(spec, "origin"); in _PyImport_LoadDynamicModuleWithSpec()
Dimport.c373 external = PyObject_GetAttrString(interp->importlib, "_bootstrap_external"); in PyImport_GetMagicNumber()
376 pyc_magic = PyObject_GetAttrString(external, "_RAW_MAGIC_NUMBER"); in PyImport_GetMagicNumber()
711 external= PyObject_GetAttrString(interp->importlib, in PyImport_ExecCodeModuleWithPathnames()
796 external = PyObject_GetAttrString(tstate->interp->importlib, in PyImport_ExecCodeModuleObject()
1030 PyObject *name = PyObject_GetAttrString(spec, "name"); in _imp_create_builtin()
2355 name = PyObject_GetAttrString(spec, "name"); in _imp_create_dynamic_impl()
2360 path = PyObject_GetAttrString(spec, "origin"); in _imp_create_dynamic_impl()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Dmessage.c136 size = PyObject_GetAttrString((PyObject*)&PyType_Type, "__basicsize__"); in PyUpb_CPythonBits_Init()
155 hex_version = PyObject_GetAttrString(sys, "hexversion"); in PyUpb_CPythonBits_Init()
1128 PyObject* method = PyObject_GetAttrString(list, "sort"); in PyUpb_Message_SortFieldList()
1942 state->listfields_item_key = PyObject_GetAttrString( in PyUpb_InitMessage()
1949 state->encode_error_class = PyObject_GetAttrString(mod, "EncodeError"); in PyUpb_InitMessage()
1950 state->decode_error_class = PyObject_GetAttrString(mod, "DecodeError"); in PyUpb_InitMessage()
1951 state->message_class = PyObject_GetAttrString(mod, "Message"); in PyUpb_InitMessage()
1959 PyObject_GetAttrString(enum_type_wrapper, "EnumTypeWrapper"); in PyUpb_InitMessage()
/aosp_15_r20/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()
/aosp_15_r20/external/python/cpython2/Modules/_sqlite/
Dconnection.c120 class_attr = PyObject_GetAttrString(database, "__class__"); in pysqlite_connection_init()
724 stepmethod = PyObject_GetAttrString(*aggregate_instance, "step"); in _pysqlite_step_callback()
1265 method = PyObject_GetAttrString(cursor, "execute"); in pysqlite_connection_execute()
1294 method = PyObject_GetAttrString(cursor, "executemany"); in pysqlite_connection_executemany()
1323 method = PyObject_GetAttrString(cursor, "executescript"); in pysqlite_connection_executescript()

1234567