New submission from Amaury Forgeot d'Arc <amaur...@gmail.com>: The following snippet should raise ValueError (twice :-)
f = open('foo', 'rb') print(f.read1(1)) # OK f.close() print(f.read1(5)) # expected ValueError("I/O operation on closed file") print(f.peek()) # expected ValueError("I/O operation on closed file") The _pyio implementation of BufferedReader.read() has the same issue. ---------- messages: 119771 nosy: amaury.forgeotdarc, pitrou priority: normal severity: normal status: open title: BufferedReader.read1 does not check for closed file _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10219> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com