Antoine Pitrou <[email protected]> added the comment:
The expected behaviour here would be to raise ValueError, as on other closed
objects:
>>> s = io.StringIO()
>>> s.close()
>>> s.write("")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
----------
nosy: +pitrou
versions: +Python 3.8 -Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue22872>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com