Author V.E.O
Recipients V.E.O
Date 2012-10-10.08:59:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349859552.28.0.331403312725.issue16183@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2012-10-10 08:59:12V.E.Osetrecipients: + V.E.O
2012-10-10 08:59:12V.E.Osetmessageid: <1349859552.28.0.331403312725.issue16183@psf.upfronthosting.co.za>
2012-10-10 08:59:12V.E.Olinkissue16183 messages
2012-10-10 08:59:11V.E.Ocreate