[issue9858] RawIOBase doesn't define readinto

2010-09-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +benjamin.peterson, stutzbach

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9858
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9858] RawIOBase doesn't define readinto

2010-09-15 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

+1 for a failing one. (Does the base implementation not raise?)

Is it even possible to implement a real one without buffering?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9858
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9858] RawIOBase doesn't define readinto

2010-09-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 +1 for a failing one. (Does the base implementation not raise?)

The base implementation doesn't exist :)

 Is it even possible to implement a real one without buffering?

FileIO does. It's the same as read(), except that you read into an existing 
buffer rather than allocating a new bytes object.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9858
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com