You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZipExtFile object close without file handle closed #60387
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-11-04.01:33:45.654>created_at=<Date2012-10-10.08:59:12.188>labels= ['type-bug', 'library']
title='ZipExtFile object close without file handle closed'updated_at=<Date2012-11-04.11:11:56.717>user='https://bugs.python.org/VEO'
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: ......
Activity
VEO commentedon Oct 10, 2012
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:
jcea commentedon Nov 4, 2012
This bug was solved in python 3.2. Pyhton 3.1 is affected.
This is not a windows issue: the file reference is kept in all platforms.
This seems to be solved in 2c370065c1b4 and 260ff379115c.
See issue bpo-9846.
python-dev commentedon Nov 4, 2012
New changeset 6a14f692df1c by Jesus Cea in branch '2.7':
Closes bpo-16183: ZipExtFile object close without file handle closed (backporting of Issue bpo-9846)
http://hg.python.org/cpython/rev/6a14f692df1c