Serhiy Storchaka added the comment: Agreed. Here is a patch that makes PyImport_AddModule to use PyDict_GetWithError and fail earlier. I think it should be applied in 3.x too.
---------- Added file: http://bugs.python.org/file41846/issue25698_fix_add_module.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25698> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com