homepage

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 <1395680217.61.0.424325707672.issue21049@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2014年03月24日 16:56:57pitrousetrecipients: + pitrou, brett.cannon, martin.panter
2014年03月24日 16:56:57pitrousetmessageid: <1395680217.61.0.424325707672.issue21049@psf.upfronthosting.co.za>
2014年03月24日 16:56:57pitroulinkissue21049 messages
2014年03月24日 16:56:57pitroucreate

AltStyle によって変換されたページ (->オリジナル) /