[issue9939] Add a pipe type (FIFO) to the io module

Antoine Pitrou report at bugs.python.org
Fri Sep 24 17:44:31 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> > Simply buffer everything.
> 
> That works for when a write operation would block.  What would it do
> when a read operation would block?

Good question. It could either return an empty bytes object, or perhaps
raise EOFError (it could be a constructor argument).

----------

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


More information about the Python-bugs-list mailing list