Lines Matching defs:module
2 /* GDBM module using dictionary interface */
26 get_gdbm_state(PyObject *module)
28 void *state = PyModule_GetState(module);
34 module _gdbm
40 "This module provides an interface to the GNU DBM (GDBM) library.\n\
42 This module is quite similar to the dbm module, but uses GDBM instead to\n\
608 appended to one of the flags described above. The module constant
623 dbmopen_impl(PyObject *module, PyObject *filename, const char *flags,
628 _gdbm_state *state = get_gdbm_state(module);
709 _gdbm_exec(PyObject *module)
711 _gdbm_state *state = get_gdbm_state(module);
712 state->gdbm_type = (PyTypeObject *)PyType_FromModuleAndSpec(module,
721 if (PyModule_AddType(module, (PyTypeObject *)state->gdbm_error) < 0) {
724 if (PyModule_AddStringConstant(module, "open_flags",
736 if (PyModule_AddObject(module, "_GDBM_VERSION", obj) < 0) {
745 _gdbm_module_traverse(PyObject *module, visitproc visit, void *arg)
747 _gdbm_state *state = get_gdbm_state(module);
754 _gdbm_module_clear(PyObject *module)
756 _gdbm_state *state = get_gdbm_state(module);
763 _gdbm_module_free(void *module)
765 _gdbm_module_clear((PyObject *)module);