Home
last modified time | relevance | path

Searched refs:PyModule_AddObject (Results 1 – 25 of 75) sorted by relevance

123

/third_party/python/Modules/
D_weakref.c144 if (PyModule_AddObject(module, "ref", (PyObject *) &_PyWeakref_RefType) < 0) { in weakref_exec()
149 if (PyModule_AddObject(module, "ReferenceType", in weakref_exec()
155 if (PyModule_AddObject(module, "ProxyType", in weakref_exec()
161 if (PyModule_AddObject(module, "CallableProxyType", in weakref_exec()
Dxxlimited_35.c262 PyModule_AddObject(m, "error", ErrorObject); in xx_modexec()
268 PyModule_AddObject(m, "Xxo", o); in xx_modexec()
274 PyModule_AddObject(m, "Str", o); in xx_modexec()
280 PyModule_AddObject(m, "Null", o); in xx_modexec()
D_testcapimodule.c7163 PyModule_AddObject(m, "_test_structmembersType", (PyObject *)&test_structmembersType); in PyInit__testcapi()
7167 PyModule_AddObject(m, "matmulType", (PyObject *)&matmulType); in PyInit__testcapi()
7172 PyModule_AddObject(m, "ipowType", (PyObject *)&ipowType); in PyInit__testcapi()
7177 PyModule_AddObject(m, "awaitType", (PyObject *)&awaitType); in PyInit__testcapi()
7183 PyModule_AddObject(m, "MyList", (PyObject *)&MyList_Type); in PyInit__testcapi()
7188 PyModule_AddObject(m, "MethodDescriptorBase", (PyObject *)&MethodDescriptorBase_Type); in PyInit__testcapi()
7194 PyModule_AddObject(m, "MethodDescriptorDerived", (PyObject *)&MethodDescriptorDerived_Type); in PyInit__testcapi()
7200 PyModule_AddObject(m, "MethodDescriptorNopGet", (PyObject *)&MethodDescriptorNopGet_Type); in PyInit__testcapi()
7206 PyModule_AddObject(m, "MethodDescriptor2", (PyObject *)&MethodDescriptor2_Type); in PyInit__testcapi()
7211 PyModule_AddObject(m, "GenericAlias", (PyObject *)&GenericAlias_Type); in PyInit__testcapi()
[all …]
Dxxmodule.c371 PyModule_AddObject(m, "error", ErrorObject); in xx_exec()
376 PyModule_AddObject(m, "Str", (PyObject *)&Str_Type); in xx_exec()
381 PyModule_AddObject(m, "Null", (PyObject *)&Null_Type); in xx_exec()
D_stat.c595 if (PyModule_AddObject(module, "IO_REPARSE_TAG_SYMLINK", in stat_exec()
599 if (PyModule_AddObject(module, "IO_REPARSE_TAG_MOUNT_POINT", in stat_exec()
603 if (PyModule_AddObject(module, "IO_REPARSE_TAG_APPEXECLINK", in stat_exec()
D_testmultiphase.c367 if (PyModule_AddObject(m, "Example", temp) != 0) { in execfunc()
378 if (PyModule_AddObject(m, "error", temp) != 0) { in execfunc()
388 if (PyModule_AddObject(m, "Str", temp) != 0) { in execfunc()
818 if (PyModule_AddObject(m, "StateAccessType", temp) != 0) { in meth_state_access_exec()
Dxxsubtype.c281 if (PyModule_AddObject(m, "spamlist", in xxsubtype_exec()
286 if (PyModule_AddObject(m, "spamdict", in xxsubtype_exec()
Dresource.c365 if (PyModule_AddObject(module, "error", PyExc_OSError) < 0) { in resource_exec()
498 if (PyModule_AddObject(module, "RLIM_INFINITY", v) < 0) { in resource_exec()
Dcmathmodule.c1260 if (PyModule_AddObject(mod, "pi", PyFloat_FromDouble(Py_MATH_PI)) < 0) { in cmath_exec()
1263 if (PyModule_AddObject(mod, "e", PyFloat_FromDouble(Py_MATH_E)) < 0) { in cmath_exec()
1267 if (PyModule_AddObject(mod, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) { in cmath_exec()
1270 if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(m_inf())) < 0) { in cmath_exec()
1274 if (PyModule_AddObject(mod, "infj", in cmath_exec()
1279 if (PyModule_AddObject(mod, "nan", PyFloat_FromDouble(m_nan())) < 0) { in cmath_exec()
1282 if (PyModule_AddObject(mod, "nanj", in cmath_exec()
Dossaudiodev.c1081 if (PyModule_AddObject(module, "control_labels", labels) == -1) in build_namelists()
1083 if (PyModule_AddObject(module, "control_names", names) == -1) in build_namelists()
1129 PyModule_AddObject(m, "error", OSSAudioError); in PyInit_ossaudiodev()
1130 PyModule_AddObject(m, "OSSAudioError", OSSAudioError); in PyInit_ossaudiodev()
Dpyexpat.c1645 if (PyModule_AddObject(mod, name, submodule) < 0) { in add_submodule()
1757 if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) { in add_errors_module()
1764 if (PyModule_AddObject(errors_module, "messages", rev_codes_dict) < 0) { in add_errors_module()
1835 if (PyModule_AddObject(mod, "features", list) < 0) { in add_features()
1898 if (PyModule_AddObject(mod, "version_info", versionInfo) < 0) { in pyexpat_exec()
1979 if (PyModule_AddObject(mod, "expat_CAPI", capi_object) < 0) { in pyexpat_exec()
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage.cc2931 PyModule_AddObject(m, "MessageMeta", in InitProto2MessageModule()
2949 PyModule_AddObject(m, "Message", reinterpret_cast<PyObject*>(CMessage_Type)); in InitProto2MessageModule()
2957 PyModule_AddObject(m, "RepeatedScalarContainer", in InitProto2MessageModule()
2965 PyModule_AddObject( in InitProto2MessageModule()
3000 PyModule_AddObject(m, "UnknownFieldSet", in InitProto2MessageModule()
3008 PyModule_AddObject(m, "UnknownField", in InitProto2MessageModule()
3016 PyModule_AddObject(m, "ScalarMapContainer", in InitProto2MessageModule()
3018 PyModule_AddObject(m, "MessageMapContainer", in InitProto2MessageModule()
3020 PyModule_AddObject(m, "MapIterator", in InitProto2MessageModule()
3026 PyModule_AddObject( in InitProto2MessageModule()
[all …]
Dmessage_module.cc116 PyModule_AddObject(m, "proto_API", api); in INITFUNC()
/third_party/python/Doc/includes/
Dcustom.c38 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom()
Dsublist.c62 if (PyModule_AddObject(m, "SubList", (PyObject *) &SubListType) < 0) { in PyInit_sublist()
Dcustom2.c131 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom2()
Dcustom3.c182 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom3()
Dcustom4.c196 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom4()
/third_party/skia/third_party/externals/brotli/python/
D_brotli.cc728 PyModule_AddObject(m, "error", BrotliError); in INIT_BROTLI()
735 PyModule_AddObject(m, "Compressor", (PyObject *)&brotli_CompressorType); in INIT_BROTLI()
741 PyModule_AddObject(m, "Decompressor", (PyObject *)&brotli_DecompressorType); in INIT_BROTLI()
/third_party/python/Doc/c-api/
Dmodule.rst489 .. c:function:: int PyModule_AddObject(PyObject *module, const char *name, PyObject *value)
496 :c:func:`PyModule_AddObject` function.
500 Unlike other functions that steal references, ``PyModule_AddObject()``
515 if (PyModule_AddObject(module, "spam", obj) < 0) {
519 // PyModule_AddObject() stole a reference to obj:
531 if (PyModule_AddObject(module, "spam", obj) < 0) {
535 // PyModule_AddObject() stole a reference to obj:
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c256 if (PyModule_AddObject(module, "flags", flags) < 0) { in multiprocessing_exec()
/third_party/python/Modules/_io/
D_iomodule.c716 if (PyModule_AddObject(m, "UnsupportedOperation", in PyInit__io()
722 if (PyModule_AddObject(m, "BlockingIOError", in PyInit__io()
/third_party/python/Modules/_decimal/
D_decimal.c5765 CHECK_INT(PyModule_AddObject(m, "Decimal", (PyObject *)&PyDec_Type)); in PyInit__decimal()
5767 CHECK_INT(PyModule_AddObject(m, "Context", in PyInit__decimal()
5770 CHECK_INT(PyModule_AddObject(m, "DecimalTuple", (PyObject *)DecimalTuple)); in PyInit__decimal()
5778 CHECK_INT(PyModule_AddObject(m, "DecimalException", DecimalException)); in PyInit__decimal()
5819 CHECK_INT(PyModule_AddObject(m, cm->name, cm->ex)); in PyInit__decimal()
5850 CHECK_INT(PyModule_AddObject(m, cm->name, cm->ex)); in PyInit__decimal()
5858 CHECK_INT(PyModule_AddObject(m, "DefaultContext", in PyInit__decimal()
5864 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal()
5868 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_True)); in PyInit__decimal()
5871 CHECK_INT(PyModule_AddObject(m, "HAVE_THREADS", Py_True)); in PyInit__decimal()
[all …]
/third_party/python/Include/
Dmodsupport.h146 PyAPI_FUNC(int) PyModule_AddObject(PyObject *mod, const char *, PyObject *value);
/third_party/python/PC/
Dmsvcrtmodule.c635 st = PyModule_AddObject(m, "CRT_ASSEMBLY_VERSION", version); in PyInit_msvcrt()

123