New submission from Carl <c...@carlbook.com>: urllib.URLopener (or urllib.request.URLopener for Python 3) and user defined classes that inherit from these prematurely delete files upon cleanup. Any temporary files downloaded using the .retrieve() method are deleted when an instance of a URLopener is garbage collected.
I feel this is a violation since the filename is returned to the caller and then silently deleted. It is possible to simply override the .cleanup() method, but I feel this is not a good solution. ---------- components: None files: bug2.py messages: 141094 nosy: carlbook priority: normal severity: normal status: open title: urllib.URLopener prematurely deletes files on cleanup type: behavior versions: Python 2.6, Python 2.7, Python 3.2 Added file: http://bugs.python.org/file22750/bug2.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12638> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com