[issue26567] ResourceWarning: Use tracemalloc to display the traceback where an object was allocated when a ResourceWarning is emitted

STINNER Victor report at bugs.python.org
Tue Mar 15 10:32:49 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26567>
_______________________________________


More information about the Python-bugs-list mailing list