[Python-Dev] Draft PEP to make file objects support
abo at minkirri.apana.org.au
Mon Mar 21 13:31:43 CET 2005
On Mon, 2005-03-21 at 11:42 +0100, Peter Astrand wrote:
> On Mon, 21 Mar 2005, Donovan Baarda wrote:
> > > > The only ways to ensure that a select process does not block like this,
> > > > without using non-blocking mode, are;
> > > 3) Use os.read / os.write.
> > [...]
> > but os.read / os.write will block too.
Hmmm... you are right... that changes things. Blocking vs non-blocking
becomes kinda moot if read/write will do partial writes in blocking
> fread() should loop internally on EAGAIN, in blocking mode.
Yeah, I was talking about non-blocking mode...
Donovan Baarda <abo at minkirri.apana.org.au>
More information about the Python-Dev