<div dir="ltr">If we use "read" and write as names. It means that often we end up writing code like this:<div><br></div><div>os.write(our_pipe.write, data)</div><div>os.read(our_pipe.read)</div><div><br></div><div>Is that ok? I mean, it's not confusing that the os.read is a method, while pip.read is an attribute.</div><div><br></div><div>Jonathan</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-30 8:07 GMT+02:00 Cameron Simpson <span dir="ltr"><<a href="mailto:cs@zip.com.au" target="_blank">cs@zip.com.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 30Jun2015 12:14, Chris Angelico <<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Tue, Jun 30, 2015 at 12:10 PM, Ben Finney <<a href="mailto:ben%2Bpython@benfinney.id.au" target="_blank">ben+python@benfinney.id.au</a>> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Steven D'Aprano <<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>> writes:<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and I don't think there is any serious downside to using a namedtuple.<br>
A minor enhancement like this shouldn't require an extended discussion<br>
here on python-ideas.<br>
</blockquote>
<br>
+1, let's just get the standard names there as attributes of a<br>
namedtuple.<br>
</span></blockquote><span class="">
<br>
Except that this isn't about stdin/stdout - that just happens to make<br>
a neat mnemonic. This is about a pipe, which has a reading end and a<br>
writing end. If you pass one of those to another process to use as its<br>
stdout, you'll be reading from the reading end; calling it "stdin"<br>
would be confusing, since you're getting what the process wrote to<br>
stdout.<br>
<br>
How about just "read" and "write"?<br>
</span></blockquote>
<br>
+1 for "read" and "write" for me. And -1 on "stdin" and "stdout" for the same reason as outlined above.<br>
<br>
Cheers,<br>
Cameron Simpson <<a href="mailto:cs@zip.com.au" target="_blank">cs@zip.com.au</a>><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</div></div></blockquote></div><br></div>