Issue 18755: imp read functions do not try to re-open files that have been closed from previous reads (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/62955
classification
Title: | imp read functions do not try to re-open files that have been closed from previous reads | ||
---|---|---|---|
Type: | behavior | Stage: | test needed |
Components: | Library (Lib) | Versions: | Python 3.3, Python 3.4 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | brett.cannon | Nosy List: | brett.cannon, python-dev |
Priority: | normal | Keywords: |
Created on 2013-08-16 14:34 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg195334 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2013-08-16 14:34 |
imp._HackedGetData doesn't check if the file it cached from its constructor is still open or not. Since the path had previously been stored it would make sense to try re-opening the file if the file object has already been closed. | ||
msg195982 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2013-08-23 15:52 |
New changeset ddd610cb65ef by Brett Cannon in branch '3.3': Issue #18755: Allow imp.load_*() loaders to have get_data() called http://hg.python.org/cpython/rev/ddd610cb65ef New changeset b107f7a8730d by Brett Cannon in branch '3.3': NEW entry for issue #18755 http://hg.python.org/cpython/rev/b107f7a8730d New changeset 7d30ecf5c916 by Brett Cannon in branch 'default': merge for issue #18755 http://hg.python.org/cpython/rev/7d30ecf5c916 New changeset 174bfa137472 by Brett Cannon in branch 'default': merge for issue #18755 http://hg.python.org/cpython/rev/174bfa137472 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:49 | admin | set | github: 62955 |
2013-08-23 15:56:37 | brett.cannon | set | status: open -> closedresolution: fixed |
2013-08-23 15:52:53 | python-dev | set | nosy: + python-devmessages: + |
2013-08-16 14:34:55 | brett.cannon | create |