Sandro Tosi <sandro.t...@gmail.com> 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''
>>> f.close()
>>> print(f.read1(5)) # expected ValueError("I/O operation on closed file")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
>>> print(f.peek())   # expected ValueError("I/O operation on closed file")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
>>> 

so it seems it's been fixed in the meantime. Do you have an example for 
BufferedReader?

----------
nosy: +sandro.tosi

_______________________________________
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

Reply via email to