Re: [Python-Dev] Track ResourceWarning warnings with tracemalloc

2013-11-29 Thread Nick Coghlan
On 29 November 2013 22:12, Victor Stinner wrote: > You can see that the socket was created by test_poplib at line 407 > TestPOP3_TLSClass.setUp). It's more useful than the previous warning > :-) Excellent! I was hoping tracemalloc would make it practical to track some of those down :) Cheers, Ni

Re: [Python-Dev] Track ResourceWarning warnings with tracemalloc

2013-11-29 Thread Serhiy Storchaka
29.11.13 14:12, Victor Stinner написав(ла): You can see that the socket was created by test_poplib at line 407 TestPOP3_TLSClass.setUp). It's more useful than the previous warning :-) Great! ___ Python-Dev mailing list Python-Dev@python.org https://

[Python-Dev] Track ResourceWarning warnings with tracemalloc

2013-11-29 Thread Victor Stinner
Hi, I'm trying to write an example of usage of the new tracemalloc.get_object_traceback() function. Last month I proposed to use it to give the traceback where a file/socket was allocated on ResourceWarning: https://mail.python.org/pipermail/python-dev/2013-October/129923.html I found a worki