[issue10219] BufferedReader.read1 does not check for closed file

2011-03-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed, I can't reproduce the issue anymore -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue10219] BufferedReader.read1 does not check for closed file

2011-03-30 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, on a freshly built python 3.3 I got: $ ./python Python 3.3a0 (default:22ae2b002865, Mar 30 2011, 20:18:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> f = open('foo', 'rb') >>> print(f.read1(1)) # OK b'' >

[issue10219] BufferedReader.read1 does not check for closed file

2010-10-28 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : 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