Home
last modified time | relevance | path

Searched refs:PyModuleDef (Results 1 – 25 of 197) sorted by relevance

12345678

/external/python/cpython3/Modules/
D_testmultiphase.c127 static PyModuleDef def_meth_state_access;
128 static PyModuleDef def_nonmodule;
129 static PyModuleDef def_nonmodule_with_methods;
325 PyModuleDef *def = PyModule_GetDef(mod); in call_state_registration_func()
438 static PyModuleDef main_def = TEST_MODULE_DEF("main", main_slots, testexport_methods);
451 createfunc_nonmodule(PyObject *spec, PyModuleDef *def) in createfunc_nonmodule()
482 static PyModuleDef def_nonmodule = TEST_MODULE_DEF(
512 static PyModuleDef def_nonmodule_with_methods = TEST_MODULE_DEF(
528 static PyModuleDef def_nonascii_latin = { \
546 static PyModuleDef def_nonascii_kana = { \
[all …]
D_testsinglephase.c246 PyModuleDef *def = PyModule_GetDef(module); in get_module_state()
377 PyModuleDef *def = PyModule_GetDef(self); in common_look_up_self()
490 static struct PyModuleDef _testsinglephase_basic = {
499 init__testsinglephase_basic(PyModuleDef *def) in init__testsinglephase_basic()
549 static struct PyModuleDef def = { in PyInit__testsinglephase_basic_copy()
586 static struct PyModuleDef _testsinglephase_with_reinit = {
651 static struct PyModuleDef _testsinglephase_with_state = {
697 static struct PyModuleDef _testsinglephase_check_cache_first = {
716 static struct PyModuleDef _testsinglephase_with_reinit_check_cache_first = {
735 static struct PyModuleDef _testsinglephase_with_state_check_cache_first = {
[all …]
D_testimportmultiple.c20 static struct PyModuleDef _testimportmultiple = {
37 static struct PyModuleDef _foomodule = {
54 static struct PyModuleDef _barmodule = {
D_contextvarsmodule.c52 static struct PyModuleDef _contextvarsmodule = {
/external/python/cpython3/Include/
Dpystate.h43 PyAPI_FUNC(int) PyState_AddModule(PyObject*, PyModuleDef*);
44 PyAPI_FUNC(int) PyState_RemoveModule(PyModuleDef*);
46 PyAPI_FUNC(PyObject*) PyState_FindModule(PyModuleDef*);
Dmoduleobject.h30 PyAPI_FUNC(PyModuleDef*) PyModule_GetDef(PyObject*);
35 PyAPI_FUNC(PyObject *) PyModuleDef_Init(PyModuleDef*);
107 struct PyModuleDef { struct
Dmodsupport.h54 PyAPI_FUNC(int) PyModule_ExecDef(PyObject *module, PyModuleDef *def);
111 PyAPI_FUNC(PyObject *) PyModule_Create2(PyModuleDef*, int apiver);
123 PyAPI_FUNC(PyObject *) PyModule_FromDefAndSpec2(PyModuleDef *def,
Dpytypedefs.h12 typedef struct PyModuleDef PyModuleDef; typedef
/external/python/cpython3/Doc/c-api/
Dmodule.rst97 :c:member:`PyModuleDef.m_size`.
100 .. c:function:: PyModuleDef* PyModule_GetDef(PyObject *module)
102 Return a pointer to the :c:type:`PyModuleDef` struct from which the module was
144 .. c:type:: PyModuleDef
171 :c:member:`~PyModuleDef.m_free` function has been called, if present.
209 precisely, this function is not called if :c:member:`~PyModuleDef.m_size` is greater
224 precisely, this function is not called if :c:member:`~PyModuleDef.m_size` is greater
232 :c:member:`~PyModuleDef.m_free` is called directly.
245 precisely, this function is not called if :c:member:`~PyModuleDef.m_size` is greater
259 .. c:function:: PyObject* PyModule_Create(PyModuleDef *def)
[all …]
/external/python/cpython3/Include/internal/
Dpycore_moduleobject.h22 PyModuleDef *md_def;
32 static inline PyModuleDef* _PyModule_GetDef(PyObject *mod) { in _PyModule_GetDef()
/external/python/cpython3/Objects/
Dmoduleobject.c26 sizeof(PyModuleDef), /* tp_basicsize */
39 PyModuleDef *def = module->md_def; in _PyModule_IsExtension()
45 PyModuleDef_Init(PyModuleDef* def) in PyModuleDef_Init()
198 PyModule_Create2(PyModuleDef* module, int module_api_version) in PyModule_Create2()
209 _PyModule_CreateInitialized(PyModuleDef* module, int module_api_version) in _PyModule_CreateInitialized()
260 PyModule_FromDefAndSpec2(PyModuleDef* def, PyObject *spec, int module_api_version) in PyModule_FromDefAndSpec2()
263 PyObject *(*create)(PyObject *, PyModuleDef*) = NULL; in PyModule_FromDefAndSpec2()
454 PyModule_ExecDef(PyObject *module, PyModuleDef *def) in PyModule_ExecDef()
643 PyModuleDef*
/external/pytorch/test/cpp_extensions/open_registration_extension/pytorch_openreg/csrc/
DModule.cpp4 static struct PyModuleDef openreg_C_module = {
/external/cronet/tot/third_party/protobuf/benchmarks/python/
Dpython_benchmark_messages.cc10 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/cronet/stable/third_party/protobuf/benchmarks/python/
Dpython_benchmark_messages.cc10 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/protobuf/benchmarks/python/
Dpython_benchmark_messages.cc10 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/cronet/tot/third_party/protobuf/python/google/protobuf/internal/
Dapi_implementation.cc81 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/protobuf/python/google/protobuf/internal/
Dapi_implementation.cc81 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/cronet/stable/third_party/protobuf/python/google/protobuf/internal/
Dapi_implementation.cc81 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
/external/pytorch/torch/csrc/dynamo/
Dutils.cpp16 static struct PyModuleDef _module = {
/external/python/cpython3/Python/
Dimport.c395 static struct extensions_cache_value * _find_cached_def(PyModuleDef *);
400 _get_module_index_from_def(PyModuleDef *def) in _get_module_index_from_def()
411 _set_module_index(PyModuleDef *def, Py_ssize_t index) in _set_module_index()
491 PyState_FindModule(PyModuleDef* module) in PyState_FindModule()
506 _PyState_AddModule(PyThreadState *tstate, PyObject* module, PyModuleDef* def) in _PyState_AddModule()
524 PyState_AddModule(PyObject* module, PyModuleDef* def) in PyState_AddModule()
554 PyState_RemoveModule(PyModuleDef* def) in PyState_RemoveModule()
581 PyModuleDef *md = PyModule_GetDef(m); in _PyImport_ClearModulesByIndex()
797 PyModuleDef *def; in exec_builtin_or_dynamic()
949 PyModuleDef *def;
[all …]
/external/pytorch/tools/autograd/templates/
Dpython_return_types.cpp36 static struct PyModuleDef def = { in initReturnTypes()
Dpython_sparse_functions.cpp45 static struct PyModuleDef def = { in initSparseFunctions()
Dpython_linalg_functions.cpp46 static struct PyModuleDef def = { in initLinalgFunctions()
/external/python/cpython3/Doc/includes/newtypes/
Dcustom.c19 static PyModuleDef custommodule = {
/external/python/cpython3/Modules/_xxtestfuzz/
D_xxtestfuzz.c36 static struct PyModuleDef _fuzzmodule = {

12345678