[Python-bugs-list] [ python-Bugs-486480 ] zipfile __del__ is broken

noreply@sourceforge.net noreply@sourceforge.net
Wed, 28 Nov 2001 06:45:41 -0800


Bugs item #486480, was opened at 2001-11-28 06:45
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=486480&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Itamar Shtull-Trauring (itamar)
Assigned to: Nobody/Anonymous (nobody)
Summary: zipfile __del__ is broken

Initial Comment:
The __del__ method calls self.fp.close(), instead of
calling self.close(). As a result, if you opened a
zipfile in write mode and forgot to close() it, it will
*not* be closed correctly when __del__ is called.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=486480&group_id=5470