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

Niki Spahiev niki.spahiev at gmail.com
Tue Jun 30 09:32:22 CEST 2015

On 30.06.2015 09:07, Cameron Simpson wrote:
> +1 for "read" and "write" for me. And -1 on "stdin" and "stdout" for the
> same reason as outlined above.

This is common found code:

if not hasattr(src, 'read'): src = open(src)

same for write.

I think read_fd and write_fd is better.


More information about the Python-ideas mailing list