[New-bugs-announce] [issue9939] Add a pipe type (FIFO) to the io module

Antoine Pitrou report at bugs.python.org
Fri Sep 24 17:19:22 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

While writing tests for nntplib, it came to me that a PipeIO or BytesPipeIO would be useful (I actually wrote a minimal one). It would be a non-seekable in-memory bytes buffer with distinct read and write pointers, so as to act like a system FIFO or a socket.makefile() object. A pure Python implementation would probably be sufficient, since the main use would be for test purposes. What do you think?

(you may point to os.pipe() but it has problems such as limited buffer size: try to write many bytes to the write end and it will block until the other end tries to read something)

----------
components: Library (Lib)
messages: 117292
nosy: benjamin.peterson, pitrou, stutzbach
priority: normal
severity: normal
status: open
title: Add a pipe type (FIFO) to the io module
type: feature request
versions: Python 3.2

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


More information about the New-bugs-announce mailing list