[New-bugs-announce] [issue18755] imp read functions do not try to re-open files that have been closed from previous reads

Brett Cannon report at bugs.python.org
Fri Aug 16 16:34:55 CEST 2013


New submission from Brett Cannon:

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.

----------
assignee: brett.cannon
components: Library (Lib)
messages: 195334
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: imp read functions do not try to re-open files that have been closed from previous reads
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18755>
_______________________________________


More information about the New-bugs-announce mailing list