Home
last modified time | relevance | path

Searched refs:PyModule_Add (Results 1 – 25 of 44) sorted by relevance

12

/external/python/cpython3/Modules/
D_stat.c661 if (PyModule_Add(module, "IO_REPARSE_TAG_SYMLINK", in stat_exec()
665 if (PyModule_Add(module, "IO_REPARSE_TAG_MOUNT_POINT", in stat_exec()
669 if (PyModule_Add(module, "IO_REPARSE_TAG_APPEXECLINK", in stat_exec()
D_testmultiphase.c387 if (PyModule_Add(m, "Example", temp) != 0) { in execfunc()
394 if (PyModule_Add(m, "error", temp) != 0) { in execfunc()
400 if (PyModule_Add(m, "Str", temp) != 0) { in execfunc()
859 if (PyModule_Add(m, "StateAccessType", temp) != 0) { in meth_state_access_exec()
Dcmathmodule.c1220 if (PyModule_Add(mod, "pi", PyFloat_FromDouble(Py_MATH_PI)) < 0) { in cmath_exec()
1223 if (PyModule_Add(mod, "e", PyFloat_FromDouble(Py_MATH_E)) < 0) { in cmath_exec()
1227 if (PyModule_Add(mod, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) { in cmath_exec()
1230 if (PyModule_Add(mod, "inf", PyFloat_FromDouble(Py_INFINITY)) < 0) { in cmath_exec()
1235 if (PyModule_Add(mod, "infj", PyComplex_FromCComplex(infj)) < 0) { in cmath_exec()
1238 if (PyModule_Add(mod, "nan", PyFloat_FromDouble(fabs(Py_NAN))) < 0) { in cmath_exec()
1242 if (PyModule_Add(mod, "nanj", PyComplex_FromCComplex(nanj)) < 0) { in cmath_exec()
Dpyexpat.c1700 if (PyModule_Add(mod, name, submodule) < 0) { in add_submodule()
1856 if (PyModule_Add(errors_module, "codes", codes_dict) < 0) { in add_errors_module()
1861 if (PyModule_Add(errors_module, "messages", rev_codes_dict) < 0) { in add_errors_module()
1930 return PyModule_Add(mod, "features", list); in add_features()
1999 if (PyModule_Add(mod, "version_info", versionInfo) < 0) { in pyexpat_exec()
2084 if (PyModule_Add(mod, "expat_CAPI", capi_object) < 0) { in pyexpat_exec()
D_testinternalcapi.c2140 if (PyModule_Add(module, "SIZEOF_PYGC_HEAD", in module_exec()
2145 if (PyModule_Add(module, "SIZEOF_MANAGED_PRE_HEADER", in module_exec()
2150 if (PyModule_Add(module, "SIZEOF_PYOBJECT", in module_exec()
2155 if (PyModule_Add(module, "SIZEOF_TIME_T", in module_exec()
2160 if (PyModule_Add(module, "TIER2_THRESHOLD", in module_exec()
D_testsinglephase.c340 if (PyModule_Add(module, "_module_initialized", PyFloat_FromDouble(d)) < 0) { in init_module()
Dresource.c505 if (PyModule_Add(module, "RLIM_INFINITY", v) < 0) { in resource_exec()
Dmathmodule.c4090 if (PyModule_Add(module, "pi", PyFloat_FromDouble(Py_MATH_PI)) < 0) { in math_exec()
4093 if (PyModule_Add(module, "e", PyFloat_FromDouble(Py_MATH_E)) < 0) { in math_exec()
4097 if (PyModule_Add(module, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) { in math_exec()
4100 if (PyModule_Add(module, "inf", PyFloat_FromDouble(Py_INFINITY)) < 0) { in math_exec()
4103 if (PyModule_Add(module, "nan", PyFloat_FromDouble(fabs(Py_NAN))) < 0) { in math_exec()
D_heapqmodule.c675 if (PyModule_Add(m, "__about__", PyUnicode_FromString(__about__)) < 0) { in heapq_exec()
Dunicodedata.c1657 if (PyModule_Add(module, "ucd_3_2_0", v) < 0) { in unicodedata_exec()
1662 if (PyModule_Add(module, "_ucnhash_CAPI", unicodedata_create_capi()) < 0) { in unicodedata_exec()
D_gdbmmodule.c794 if (PyModule_Add(module, "_GDBM_VERSION", obj) < 0) { in _gdbm_exec()
D_hashopenssl.c1932 return PyModule_Add(module, "openssl_md_meth_names", state.set); in hashlib_md_meth_names()
2262 return PyModule_Add(module, "_constructors", in hashlib_init_constructors()
Dzlibmodule.c2092 if (PyModule_Add(mod, "ZLIB_VERSION", in zlib_exec()
2096 if (PyModule_Add(mod, "ZLIB_RUNTIME_VERSION", in zlib_exec()
Dtimemodule.c1845 if (PyModule_Add(m, "tzname", Py_BuildValue("(NN)", otz0, otz1)) < 0) { in init_timezone()
1890 if (PyModule_Add(m, "tzname", tzname_obj) < 0) { in init_timezone()
D_json.c1824 if (PyModule_Add(module, "make_scanner", PyScannerType) < 0) { in _json_exec()
1829 if (PyModule_Add(module, "make_encoder", PyEncoderType) < 0) { in _json_exec()
D_ssl.c6294 return PyModule_Add(m, name, PyLong_FromUnsignedLongLong(value)); in sslmodule_add_option()
6628 if (PyModule_Add(m, "OPENSSL_VERSION_NUMBER", r) < 0) in sslmodule_init_versioninfo()
6633 if (PyModule_Add(m, "OPENSSL_VERSION_INFO", r) < 0) in sslmodule_init_versioninfo()
6637 if (PyModule_Add(m, "OPENSSL_VERSION", r) < 0) in sslmodule_init_versioninfo()
6643 if (PyModule_Add(m, "_OPENSSL_API_VERSION", r) < 0) in sslmodule_init_versioninfo()
/external/python/cpython3/PC/
Dmsvcrtmodule.c571 return PyModule_Add(mod, name, PyLong_FromVoidPtr(value)); in insertptr()
648 if (PyModule_Add(m, "CRT_ASSEMBLY_VERSION", version) < 0) { in exec_module()
/external/python/cpython3/Python/
Dmodsupport.c609 PyModule_Add(PyObject *mod, const char *name, PyObject *value) in PyModule_Add() function
629 return PyModule_Add(m, name, PyLong_FromLong(value)); in PyModule_AddIntConstant()
635 return PyModule_Add(m, name, PyUnicode_FromString(value)); in PyModule_AddStringConstant()
/external/python/cpython3/Include/
Dmodsupport.h31 PyAPI_FUNC(int) PyModule_Add(PyObject *mod, const char *name, PyObject *value);
/external/python/cpython3/Modules/_multiprocessing/
Dmultiprocessing.c270 if (PyModule_Add(module, "flags", flags) < 0) { in multiprocessing_exec()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h401 if (PyModule_Add(module, mhname, capsule) < 0) { in register_maps()
/external/python/cpython3/Modules/_testcapi/
Dwatchers.c530 return PyModule_Add(module, name, PyLong_FromLong(event)); in add_func_event()
Dheaptype.c1127 if (PyModule_Add(m, name, value) < 0) { \ in _PyTestCapi_Init_Heaptype()
/external/python/cpython3/Doc/c-api/
Dmodule.rst569 .. c:function:: int PyModule_Add(PyObject *module, const char *name, PyObject *value)
578 if (PyModule_Add(module, "spam", PyBytes_FromString(value)) < 0) {
590 The new :c:func:`PyModule_Add` or :c:func:`PyModule_AddObjectRef`
/external/python/cpython3/Misc/NEWS.d/
D3.13.0b4.rst387 ``PyModule_Add*`` convenience functions.

12