Jon Dufresne added the comment:

I've taken a new approach to resolve the urllib issues.

I believe HTTPError _should not_ warn when __del__ is called as HTTPError wraps 
an existing resource instead of generating its own. IIUC, in this case, I 
believe it falls to the responsibility of code generating the resource to 
properly close and manage the resource (or pass that responsibility along). If 
I misunderstood, please let me know.

All feedback on the patch is welcome, thanks.

----------
Added file: 
http://bugs.python.org/file45851/namedtemporaryfile-resourcewarning-3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28867>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to