[issue1705393] Select() failure (race condition)

Amaury Forgeot d'Arc report at bugs.python.org
Fri Apr 3 19:29:24 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

This older post 
http://bytes.com/groups/python/786579-python-2-2-1-select
describes a similar problem where select() is used on a buffered file
object (a pipe to another process)

IMO it should be documented that select() does not work so well for
objects which have a fileno(), but do data buffering: select() only sees
the file descriptor and cannot know whether there is data in the buffer.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1705393>
_______________________________________


More information about the Python-bugs-list mailing list