19 Nov
2013
19 Nov
'13
7:23 p.m.
On Tue, Nov 19, 2013 at 7:02 PM,
On Tue, Nov 19, 2013, at 12:28, Draic Kin wrote:
Well, if you use the textio object than there are no problems and you couldn't use buffered or raw io at all with the other approach. If you try to read one byte from raw io, it just returns b''.
I get that, but my understanding is that this implies EOF.
Does it? If so then rawio.read(1) should raise en exception since other options are to lose one byte or return more bytes than demanded which seem to be unacceptable.