This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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) * (Python committer) 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) (Python triager) 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:49adminsetgithub: 62955
2013-08-23 15:56:37brett.cannonsetstatus: open -> closed
resolution: fixed
2013-08-23 15:52:53python-devsetnosy: + python-dev
messages: + msg195982
2013-08-16 14:34:55brett.cannoncreate