[issue7953] RawIOBase.read fails with an AttributeError

2010-02-17 Thread R. David Murray
R. David Murray added the comment: Also note that RawIOBase is not intended to be a concrete class, it is intended to be subclassed (thus the 'Base' in the name). -- nosy: +r.david.murray priority: -> normal ___ Python tracker

[issue7953] RawIOBase.read fails with an AttributeError

2010-02-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: If you want the actual raw sys.stdin stream, use sys.stdin.buffer.raw. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue7953] RawIOBase.read fails with an AttributeError

2010-02-17 Thread Andrew McNabb
New submission from Andrew McNabb : I was trying to open stdin in binary mode and ran the following: >>> RawIOBase(sys.stdin.fileno()).read() Traceback (most recent call last): File "", line 1, in AttributeError: 'RawIOBase' object has no attribute 'readinto' >>> I would expect read() to rea