[issue26592] _warnings.warn_explicit() should try to import the warnings module

2016-03-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26592] _warnings.warn_explicit() should try to import the warnings module

2016-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53343d095f78 by Victor Stinner in branch 'default': _warnings.warn_explicit(): try to import warnings https://hg.python.org/cpython/rev/53343d095f78 -- nosy: +python-dev ___ Python tracker

[issue26592] _warnings.warn_explicit() should try to import the warnings module

2016-03-19 Thread STINNER Victor
New submission from STINNER Victor: The issue #26567 enhanced the warnings module to pass the destroyed object on ResourceWarning. The implementation to log the traceback where the object was allocated is non trivial, so I chose to only implement it in Python. Problem: