This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, martin.panter, pitrou
Date 2014-03-24.16:56:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
For a more detailed analysis:
- the warning gets printed very late because the socket is caught in a reference cycle (self.attr = self), which itself is tied to the exception traceback
- when the socket is collected, it tries to print a ResourceWarning because it hasn't been closed explicitly (just add self.close() in the constructor to make it disappear)
- when trying to print the ResourceWarning, it probably wants to import linecache or something, and that breaks

The only remaining mystery is why there are 200 lines and not just one :-)
Date User Action Args
2014-03-24 16:56:57pitrousetrecipients: + pitrou, brett.cannon, martin.panter
2014-03-24 16:56:57pitrousetmessageid: <>
2014-03-24 16:56:57pitroulinkissue21049 messages
2014-03-24 16:56:57pitroucreate