Lines Matching defs:module
45 module datetime
277 * the correct values is asserted in the module init function.
1567 /* I sure don't want to reproduce the strftime code from the time module,
1568 * so this imports the module and calls it. All the hair is due to
1742 * Wrap functions from the time module. These aren't directly available
1820 * Cached Python objects; these are set by the module init function.
5223 static PyObject *module = NULL;
5230 if (module == NULL) {
5231 module = PyImport_ImportModule("_strptime");
5232 if (module == NULL)
5235 return _PyObject_CallMethodIdObjArgs(module, &PyId__strptime_datetime,
6720 _datetime_exec(PyObject *module)
6739 if (PyModule_AddType(module, types[i]) < 0) {
6835 /* module initialization */
6836 if (PyModule_AddIntMacro(module, MINYEAR) < 0) {
6839 if (PyModule_AddIntMacro(module, MAXYEAR) < 0) {
6853 if (PyModule_AddObject(module, "datetime_CAPI", x) < 0) {
6858 if (PyModule_AddObjectRef(module, "UTC", PyDateTime_TimeZone_UTC) < 0) {