New submission from Xiang Zhang: The two PyErr_Occurred check in exec_builtin_or_dynamic are unnecessary. The PyModule_Check at the beginning of exec_builtin_or_dynamic has eliminated the possibility for PyModule_GetDef/State to fail.
---------- components: Interpreter Core files: exec_built_or_dynamic.patch keywords: patch messages: 274015 nosy: brett.cannon, eric.snow, ncoghlan, xiang.zhang priority: normal severity: normal status: open title: Unnecessary error checks in exec_builtin_or_dynamic type: enhancement versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file44294/exec_built_or_dynamic.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27911> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com