STINNER Victor added the comment: > Backward-compatibility problem: The C function PyErr_ResourceWarning() always > call warnings.showwarning() with the keyword parameter source. If an > application replaces the warnings.showwarning() function, it will probably > fail because it doesn't know the source parameter.
I proposed the issue #26568 "Add a new warnings.showmsg() function taking a warnings.WarningMessage object" to fix this issue. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26567> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com