[Python-ideas] Make os.pipe() return a namedtuple.

Cameron Simpson cs at zip.com.au
Tue Jun 30 08:07:56 CEST 2015

On 30Jun2015 12:14, Chris Angelico <rosuav at gmail.com> wrote:
>On Tue, Jun 30, 2015 at 12:10 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
>> Steven D'Aprano <steve at pearwood.info> writes:
>>> and I don't think there is any serious downside to using a namedtuple.
>>> A minor enhancement like this shouldn't require an extended discussion
>>> here on python-ideas.
>> +1, let's just get the standard names there as attributes of a
>> namedtuple.
>Except that this isn't about stdin/stdout - that just happens to make
>a neat mnemonic. This is about a pipe, which has a reading end and a
>writing end. If you pass one of those to another process to use as its
>stdout, you'll be reading from the reading end; calling it "stdin"
>would be confusing, since you're getting what the process wrote to
>How about just "read" and "write"?

+1 for "read" and "write" for me. And -1 on "stdin" and "stdout" for the same 
reason as outlined above.

Cameron Simpson <cs at zip.com.au>

More information about the Python-ideas mailing list