[New-bugs-announce] [issue24536] os.pipe() should return a structsequence (or namedtuple.)

Jonathan Slenders report at bugs.python.org
Tue Jun 30 09:19:17 CEST 2015


New submission from Jonathan Slenders:

As discussed on python-ideas, os.pipe should return a structsequence instead of a plain tuple.

To be decided is the naming for the read and write end.
Personally, I'm in favour of using readfd/writefd.

> our_pipe = pipe()
> os.write(our_pipe.writefd, b'data')
> os.read(our_pipe.readfd, 1024)

----------
components: IO
messages: 245980
nosy: jonathan.slenders
priority: normal
severity: normal
status: open
title: os.pipe() should return a structsequence (or namedtuple.)
versions: Python 3.6

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


More information about the New-bugs-announce mailing list