STINNER Victor <victor.stin...@haypocalc.com> added the comment:

PyImport_Import() clears errors if a module has no globals, whereas 
PyEval_GetGlobals() doesn't set any exception on failure. => 
import_no_global.patch removes this unnecessary PyErr_Clear().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3137>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to