Re: [Python-Dev] How io.IOBase.readline() should behave when used on non-blocking obj and no data available?

2014-10-16 Thread Antoine Pitrou
On Thu, 16 Oct 2014 03:54:32 +0300 Paul Sokolovsky wrote: > Hello, > > io.RawIOBase.read() is well specified for behavior in case it > immediately gets a would-block condition: "If the object is in > non-blocking mode and no bytes are available, None is returned." > (https://docs.python.org/3/lib

Re: [Python-Dev] How io.IOBase.readline() should behave when used on non-blocking obj and no data available?

2014-10-16 Thread Guido van Rossum
On Thu, Oct 16, 2014 at 4:34 AM, Antoine Pitrou wrote: > On Thu, 16 Oct 2014 03:54:32 +0300 > Paul Sokolovsky wrote: > > Hello, > > > > io.RawIOBase.read() is well specified for behavior in case it > > immediately gets a would-block condition: "If the object is in > > non-blocking mode and no by