Lines Matching defs:module
2 /* Testing module for multi-phase initialization of extension modules (PEP 489)
11 /* State for testing module state access from methods */
18 module _testmultiphase
137 Return the module of the defining class.
140 module.
185 Add 'n' from the module-state counter.
211 "Add 'n' from the module-state counter.\n"
258 Return the value of the module-state counter.
285 {Py_tp_doc, "Type for testing per-module state access from methods."},
358 {Py_tp_base, NULL}, /* filled out in module exec function */
431 /* Helper for module definitions; there'll be a lot of them */
436 PyDoc_STR("Test module " name), /* m_doc */ \
459 /**** Importing a non-module object ****/
623 PyDoc_STR("Not a PyModuleObject object, but requests per-module state"),
872 .m_doc = PyDoc_STR("Regression Test module for single-phase init."),
879 PyObject *module = PyModule_Create(&def_module_state_shared);
880 if (module == NULL) {
884 if (PyModule_AddObjectRef(module, "Error", PyExc_Exception) < 0) {
885 Py_DECREF(module);
888 return module;