[Python-Dev] Draft PEP to make file objects support non-blocking mode. (original) (raw)
Donovan Baarda abo at minkirri.apana.org.au
Mon Mar 21 13:31:43 CET 2005
- Previous message: [Python-Dev] Draft PEP to make file objects support non-blocking mode.
- Next message: [Python-Dev] Draft PEP to make file objects support non-blocking mode.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. No. [...]
Hmmm... you are right... that changes things. Blocking vs non-blocking becomes kinda moot if read/write will do partial writes in blocking mode.
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> http://minkirri.apana.org.au/~abo/
- Previous message: [Python-Dev] Draft PEP to make file objects support non-blocking mode.
- Next message: [Python-Dev] Draft PEP to make file objects support non-blocking mode.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]