Lines Matching defs:module
4 The code in this module was based on a download from:
92 get_random_state(PyObject *module)
94 void *state = _PyModule_GetState(module);
114 module _random
585 _random_exec(PyObject *module)
587 _randomstate *state = get_random_state(module);
590 module, &Random_Type_spec, NULL);
594 if (PyModule_AddType(module, (PyTypeObject *)state->Random_Type) < 0) {
624 _random_traverse(PyObject *module, visitproc visit, void *arg)
626 Py_VISIT(get_random_state(module)->Random_Type);
631 _random_clear(PyObject *module)
633 Py_CLEAR(get_random_state(module)->Random_Type);
634 Py_CLEAR(get_random_state(module)->Long___abs__);
639 _random_free(void *module)
641 _random_clear((PyObject *)module);