/third_party/python/Modules/ |
D | _weakref.c | 144 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()
|
D | xxlimited_35.c | 262 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.c | 7163 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 …]
|
D | xxmodule.c | 371 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.c | 595 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.c | 367 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()
|
D | xxsubtype.c | 281 if (PyModule_AddObject(m, "spamlist", in xxsubtype_exec() 286 if (PyModule_AddObject(m, "spamdict", in xxsubtype_exec()
|
D | resource.c | 365 if (PyModule_AddObject(module, "error", PyExc_OSError) < 0) { in resource_exec() 498 if (PyModule_AddObject(module, "RLIM_INFINITY", v) < 0) { in resource_exec()
|
D | cmathmodule.c | 1260 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()
|
D | ossaudiodev.c | 1081 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()
|
D | pyexpat.c | 1645 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/ |
D | message.cc | 2931 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 …]
|
D | message_module.cc | 116 PyModule_AddObject(m, "proto_API", api); in INITFUNC()
|
/third_party/python/Doc/includes/ |
D | custom.c | 38 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom()
|
D | sublist.c | 62 if (PyModule_AddObject(m, "SubList", (PyObject *) &SubListType) < 0) { in PyInit_sublist()
|
D | custom2.c | 131 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom2()
|
D | custom3.c | 182 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom3()
|
D | custom4.c | 196 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom4()
|
/third_party/skia/third_party/externals/brotli/python/ |
D | _brotli.cc | 728 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/ |
D | module.rst | 489 .. 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/ |
D | multiprocessing.c | 256 if (PyModule_AddObject(module, "flags", flags) < 0) { in multiprocessing_exec()
|
/third_party/python/Modules/_io/ |
D | _iomodule.c | 716 if (PyModule_AddObject(m, "UnsupportedOperation", in PyInit__io() 722 if (PyModule_AddObject(m, "BlockingIOError", in PyInit__io()
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 5765 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/ |
D | modsupport.h | 146 PyAPI_FUNC(int) PyModule_AddObject(PyObject *mod, const char *, PyObject *value);
|
/third_party/python/PC/ |
D | msvcrtmodule.c | 635 st = PyModule_AddObject(m, "CRT_ASSEMBLY_VERSION", version); in PyInit_msvcrt()
|