Home
last modified time | relevance | path

Searched refs:PyModule_AddObjectRef (Results 1 – 25 of 37) sorted by relevance

12

/aosp_15_r20/external/python/cpython3/Python/
DPython-ast.c11911 if (PyModule_AddObjectRef(m, "AST", state->AST_type) < 0) { in astmodule_exec()
11923 if (PyModule_AddObjectRef(m, "mod", state->mod_type) < 0) { in astmodule_exec()
11926 if (PyModule_AddObjectRef(m, "Module", state->Module_type) < 0) { in astmodule_exec()
11929 if (PyModule_AddObjectRef(m, "Interactive", state->Interactive_type) < 0) { in astmodule_exec()
11932 if (PyModule_AddObjectRef(m, "Expression", state->Expression_type) < 0) { in astmodule_exec()
11935 if (PyModule_AddObjectRef(m, "FunctionType", state->FunctionType_type) < 0) in astmodule_exec()
11939 if (PyModule_AddObjectRef(m, "stmt", state->stmt_type) < 0) { in astmodule_exec()
11942 if (PyModule_AddObjectRef(m, "FunctionDef", state->FunctionDef_type) < 0) { in astmodule_exec()
11945 if (PyModule_AddObjectRef(m, "AsyncFunctionDef", in astmodule_exec()
11949 if (PyModule_AddObjectRef(m, "ClassDef", state->ClassDef_type) < 0) { in astmodule_exec()
[all …]
Dmodsupport.c637 PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value) in PyModule_AddObjectRef() function
672 int res = PyModule_AddObjectRef(mod, name, value); in PyModule_AddObject()
686 int res = PyModule_AddObjectRef(m, name, obj); in PyModule_AddIntConstant()
698 int res = PyModule_AddObjectRef(m, name, obj); in PyModule_AddStringConstant()
713 return PyModule_AddObjectRef(module, name, (PyObject *)type); in PyModule_AddType()
D_warnings.c1376 if (PyModule_AddObjectRef(module, "filters", st->filters) < 0) { in warnings_module_exec()
1379 if (PyModule_AddObjectRef(module, "_onceregistry", st->once_registry) < 0) { in warnings_module_exec()
1382 if (PyModule_AddObjectRef(module, "_defaultaction", st->default_action) < 0) { in warnings_module_exec()
Dimportdl.c228 if (PyModule_AddObjectRef(m, "__file__", path) < 0) { in _PyImport_LoadDynamicModuleWithSpec()
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dmodule.rst274 object is typically populated using functions like :c:func:`PyModule_AddObjectRef`.
447 .. c:function:: int PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value)
466 int res = PyModule_AddObjectRef(module, "spam", obj);
478 int res = PyModule_AddObjectRef(module, "spam", obj);
491 Similar to :c:func:`PyModule_AddObjectRef`, but steals a reference to
494 The new :c:func:`PyModule_AddObjectRef` function is recommended, since it is
/aosp_15_r20/external/python/cpython3/Modules/
D_csv.c1728 if (PyModule_AddObjectRef(module, "Dialect", temp) < 0) { in csv_exec()
1734 if (PyModule_AddObjectRef(module, "Reader", temp) < 0) { in csv_exec()
1740 if (PyModule_AddObjectRef(module, "Writer", temp) < 0) { in csv_exec()
1755 if (PyModule_AddObjectRef(module, "_dialects", module_state->dialects) < 0) { in csv_exec()
D_queuemodule.c416 if (PyModule_AddObjectRef(module, "Empty", state->EmptyError) < 0) { in queuemodule_exec()
Dpyexpat.c1915 if (PyModule_AddObjectRef(mod, "error", state->error) < 0) { in pyexpat_exec()
1919 if (PyModule_AddObjectRef(mod, "ExpatError", state->error) < 0) { in pyexpat_exec()
1923 if (PyModule_AddObjectRef(mod, "XMLParserType", in pyexpat_exec()
D_hashopenssl.c2235 int rc = PyModule_AddObjectRef(module, "_constructors", proxy); in hashlib_init_constructors()
2252 if (PyModule_AddObjectRef(module, "UnsupportedDigestmodError", in hashlib_exception()
D_testmultiphase.c884 if (PyModule_AddObjectRef(module, "Error", PyExc_Exception) < 0) { in PyInit__test_module_state_shared()
Dgcmodule.c2002 if (PyModule_AddObjectRef(module, "garbage", gcstate->garbage) < 0) { in gcmodule_exec()
2006 if (PyModule_AddObjectRef(module, "callbacks", gcstate->callbacks) < 0) { in gcmodule_exec()
D_ssl.c5697 if (PyModule_AddObjectRef(module, name, exc) < 0) goto error; \ in sslmodule_init_exceptions()
5705 if (PyModule_AddObjectRef(module, "SSLError", state->PySSLErrorObject) < 0) { in sslmodule_init_exceptions()
6083 if (PyModule_AddObjectRef(module, "err_codes_to_names", state->err_codes_to_names)) in sslmodule_init_errorcodes()
6085 if (PyModule_AddObjectRef(module, "err_names_to_codes", state->err_names_to_codes)) in sslmodule_init_errorcodes()
6087 if (PyModule_AddObjectRef(module, "lib_codes_to_names", state->lib_codes_to_names)) in sslmodule_init_errorcodes()
Dunicodedata.c1518 int rc = PyModule_AddObjectRef(module, "_ucnhash_CAPI", capsule); in unicodedata_exec()
Dselectmodule.c2440 if (PyModule_AddObjectRef(m, "error", PyExc_OSError) < 0) {
/aosp_15_r20/external/pytorch/torch/csrc/utils/
H A Dpythoncapi_compat.h430 PyModule_AddObjectRef(PyObject *module, const char *name, PyObject *value) in PyModule_AddObjectRef() function
462 return PyModule_AddObjectRef(module, name, _PyObject_CAST(type)); in PyModule_AddType()
/aosp_15_r20/external/python/cpython3/Modules/_sqlite/
Dmicroprotocols.c45 return PyModule_AddObjectRef(module, "adapters", state->psyco_adapters); in pysqlite_microprotocols_init()
Dmodule.c251 return PyModule_AddObjectRef(module, "converters", state->converters); in converters_init()
/aosp_15_r20/external/python/cpython3/Include/
Dmodsupport.h47 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dmodsupport.h47 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dmodsupport.h47 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dmodsupport.h47 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dmodsupport.h47 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/aosp_15_r20/external/python/cpython3/Modules/_io/
D_iomodule.c706 if (PyModule_AddObjectRef(m, "BlockingIOError", in PyInit__io()
/aosp_15_r20/external/python/cpython3/PC/
Dpython3dll.c373 EXPORT_FUNC(PyModule_AddObjectRef)
/aosp_15_r20/external/python/cpython3/Doc/data/
Dstable_abi.dat402 function,PyModule_AddObjectRef,3.10,,

12