[New-bugs-announce] [issue7169] zipfile leaves a file handle open if file is zero size

skelker report at bugs.python.org
Mon Oct 19 15:33:48 CEST 2009


New submission from skelker <steve.kelker at dtn.com>:

I noticed today if I attempt to create a ZipFile object for read access,
and the zip file is zero bytes, the ZipFile object throws an exception,
but there is still an open handle to the file.  So if I catch that
exception, and then try to delete the file, the delete then fails.  I
have attached a script that replicates the issue.

----------
components: Windows
files: zipfileCrash.py
messages: 94236
nosy: skelker
severity: normal
status: open
title: zipfile leaves a file handle open if file is zero size
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file15165/zipfileCrash.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7169>
_______________________________________


More information about the New-bugs-announce mailing list