Message214699
| 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:57 | pitrou | set | recipients:
+ pitrou, brett.cannon, martin.panter |
| 2014年03月24日 16:56:57 | pitrou | set | messageid: <1395680217.61.0.424325707672.issue21049@psf.upfronthosting.co.za> |
| 2014年03月24日 16:56:57 | pitrou | link | issue21049 messages |
| 2014年03月24日 16:56:57 | pitrou | create |
|