[New-bugs-announce] [issue7953] RawIOBase.read fails with an AttributeError

Andrew McNabb report at bugs.python.org
Thu Feb 18 01:44:26 CET 2010


New submission from Andrew McNabb <amcnabb at 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 <report at bugs.python.org>
<http://bugs.python.org/issue7953>
_______________________________________


More information about the New-bugs-announce mailing list