[issue29564] ResourceWarning: suggest to enable tracemalloc in the message

STINNER Victor report at bugs.python.org
Wed Feb 15 12:32:43 EST 2017


STINNER Victor added the comment:

To be clear: warnings should only suggest to enable tracemalloc if tracemalloc.is_tracing() is False.

It is possible to tracemalloc is tracing, but failed (for different reasons) to track where the memory of the resource was allocated.

----------
title: ResourceWarning tracking is attaching incorrect file:position to unclosed socket -> ResourceWarning: suggest to enable tracemalloc in the message

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29564>
_______________________________________


More information about the Python-bugs-list mailing list