Home
last modified time | relevance | path

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

12

/external/python/cpython3/Python/
DPython-ast.c11604 if (PyModule_AddObjectRef(m, "AST", state->AST_type) < 0) { in astmodule_exec()
11616 if (PyModule_AddObjectRef(m, "mod", state->mod_type) < 0) { in astmodule_exec()
11619 if (PyModule_AddObjectRef(m, "Module", state->Module_type) < 0) { in astmodule_exec()
11622 if (PyModule_AddObjectRef(m, "Interactive", state->Interactive_type) < 0) { in astmodule_exec()
11625 if (PyModule_AddObjectRef(m, "Expression", state->Expression_type) < 0) { in astmodule_exec()
11628 if (PyModule_AddObjectRef(m, "FunctionType", state->FunctionType_type) < 0) in astmodule_exec()
11632 if (PyModule_AddObjectRef(m, "stmt", state->stmt_type) < 0) { in astmodule_exec()
11635 if (PyModule_AddObjectRef(m, "FunctionDef", state->FunctionDef_type) < 0) { in astmodule_exec()
11638 if (PyModule_AddObjectRef(m, "AsyncFunctionDef", in astmodule_exec()
11642 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()
Dimportdl.c226 if (PyModule_AddObjectRef(m, "__file__", path) < 0) { in _PyImport_LoadDynamicModuleWithSpec()
D_warnings.c1360 if (PyModule_AddObjectRef(module, "filters", st->filters) < 0) { in warnings_module_exec()
1363 if (PyModule_AddObjectRef(module, "_onceregistry", st->once_registry) < 0) { in warnings_module_exec()
1366 if (PyModule_AddObjectRef(module, "_defaultaction", st->default_action) < 0) { in warnings_module_exec()
Dimport.c2153 if (PyModule_AddObjectRef(module, "check_hash_based_pycs", pyc_mode) < 0) { in imp_module_exec()
/external/python/cpython3/Modules/_sqlite/
Dmodule.c261 int res = PyModule_AddObjectRef(module, "converters", _pysqlite_converters); in converters_init()
358 int res = PyModule_AddObjectRef(module, name, exc); \
Dmicroprotocols.c46 int res = PyModule_AddObjectRef(module, "adapters", psyco_adapters); in pysqlite_microprotocols_init()
/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
/external/python/cpython3/Include/
Dmodsupport.h142 PyAPI_FUNC(int) PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value);
/external/python/cpython3/Modules/
D_csv.c1707 if (PyModule_AddObjectRef(module, "Dialect", temp) < 0) { in csv_exec()
1713 if (PyModule_AddObjectRef(module, "Reader", temp) < 0) { in csv_exec()
1719 if (PyModule_AddObjectRef(module, "Writer", temp) < 0) { in csv_exec()
1734 if (PyModule_AddObjectRef(module, "_dialects", module_state->dialects) < 0) { in csv_exec()
D_queuemodule.c407 if (PyModule_AddObjectRef(module, "Empty", state->EmptyError) < 0) { in queuemodule_exec()
Dpyexpat.c1875 if (PyModule_AddObjectRef(mod, "error", state->error) < 0) { in pyexpat_exec()
1879 if (PyModule_AddObjectRef(mod, "ExpatError", state->error) < 0) { in pyexpat_exec()
1883 if (PyModule_AddObjectRef(mod, "XMLParserType", in pyexpat_exec()
D_testmultiphase.c880 if (PyModule_AddObjectRef(module, "Error", PyExc_Exception) < 0) { in PyInit__test_module_state_shared()
D_hashopenssl.c2224 int rc = PyModule_AddObjectRef(module, "_constructors", proxy); in hashlib_init_constructors()
2241 if (PyModule_AddObjectRef(module, "UnsupportedDigestmodError", in hashlib_exception()
Dgcmodule.c2015 if (PyModule_AddObjectRef(module, "garbage", gcstate->garbage) < 0) { in gcmodule_exec()
2019 if (PyModule_AddObjectRef(module, "callbacks", gcstate->callbacks) < 0) { in gcmodule_exec()
D_ssl.c5661 if (PyModule_AddObjectRef(module, name, exc) < 0) goto error; \ in sslmodule_init_exceptions()
5669 if (PyModule_AddObjectRef(module, "SSLError", state->PySSLErrorObject) < 0) { in sslmodule_init_exceptions()
6047 if (PyModule_AddObjectRef(module, "err_codes_to_names", state->err_codes_to_names)) in sslmodule_init_errorcodes()
6049 if (PyModule_AddObjectRef(module, "err_names_to_codes", state->err_names_to_codes)) in sslmodule_init_errorcodes()
6051 if (PyModule_AddObjectRef(module, "lib_codes_to_names", state->lib_codes_to_names)) in sslmodule_init_errorcodes()
Dunicodedata.c1516 int rc = PyModule_AddObjectRef(module, "_ucnhash_CAPI", capsule); in unicodedata_exec()
Dselectmodule.c2422 if (PyModule_AddObjectRef(m, "error", PyExc_OSError) < 0) {
D_struct.c2442 if (PyModule_AddObjectRef(m, "error", state->StructError) < 0) { in _structmodule_exec()
D_sre.c2906 int res = PyModule_AddObjectRef(module, name, o); \
/external/python/cpython3/PC/
Dpython3dll.c366 EXPORT_FUNC(PyModule_AddObjectRef)
/external/python/cpython3/Doc/data/
Dstable_abi.dat390 function,PyModule_AddObjectRef,3.10,
/external/python/cpython3/Misc/
Dstable_abi.txt2103 function PyModule_AddObjectRef
/external/python/cpython3/Misc/NEWS.d/
D3.10.0a3.rst1458 Added :c:func:`PyModule_AddObjectRef` function: similar to
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c5767 if (PyModule_AddObjectRef(mod, name, obj) < 0) { \ in _ctypes_add_objects()

12