STINNER Victor <vstin...@redhat.com> added the comment:
Hum. By the way, PyInit_time() calls PyModule_AddObject() without checking for errors :-/ PyMODINIT_FUNC PyInit_time(void) { PyObject *m; m = PyModule_Create(&timemodule); if (m == NULL) return NULL; ... PyModule_AddObject(m, "struct_time", (PyObject*) &StructTimeType); ... return m; } It should have at least one final generic: if (PyErr_Occurred()) { return -1; } ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35373> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com