New submission from Andrew McNabb <amcn...@mcnabbs.org>:

I was trying to open stdin in binary mode and ran the following:

>>> RawIOBase(sys.stdin.fileno()).read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'RawIOBase' object has no attribute 'readinto'
>>>

I would expect read() to read data instead of crashing.

----------
components: IO
messages: 99484
nosy: amcnabb
severity: normal
status: open
title: RawIOBase.read fails with an AttributeError
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7953>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to