[New-bugs-announce] [issue15841] Some StringIO and BytesIO methods can succeed after close
Antoine Pitrou
report at bugs.python.org
Sat Sep 1 21:18:52 CEST 2012
New submission from Antoine Pitrou:
>>> f = io.StringIO()
>>> f.close()
>>> f.readable()
True
>>> f.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file.
>>> f = io.BytesIO()
>>> f.close()
>>> f.readable()
True
>>> f.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
----------
components: IO, Library (Lib)
messages: 169665
nosy: pitrou
priority: normal
severity: normal
status: open
title: Some StringIO and BytesIO methods can succeed after close
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15841>
_______________________________________
More information about the New-bugs-announce
mailing list