New submission from V.E.O:
Hi, I tried to open file-like object ZipExtFile in one zip file, after
operations, I close it and after all, close ZipFile.
But I still can not remove the zip file immediately.
This problem happens on Windows, error msg:
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process: ......
Sample code as below:
z = ZipFile('D:\\1', 'r')
zlist = z.infolist()
for zi in zlist:
zf = z.open(zi)
zf.close()
z.close()
os.remove(attach)
----------
components: Library (Lib)
messages: 172555
nosy: V.E.O
priority: normal
severity: normal
status: open
title: ZipExtFile object close without file handle closed
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16183>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com