<p dir="ltr"><br>
On 20 Aug 2014 04:18, "Marko Rauhamaa" <<a href="mailto:marko@pacujo.net">marko@pacujo.net</a>> wrote:<br>
><br>
> Tres Seaver <<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>>:<br>
><br>
> > On 08/19/2014 01:43 PM, Ben Hoyt wrote:<br>
> >> Fair enough. I don't quite understand, though -- why is the "official<br>
> >> policy" to kill something that's "essential" on *nix?<br>
> ><br>
> > ISTM that the policy is based on a fantasy that "it looks like text to<br>
> > me in my use cases, so therefore it must be text for everyone."<br>
><br>
> What I like about Python is that it allows me to write native linux code<br>
> without having to make portability compromises that plague, say, Java. I<br>
> have select.epoll(). I have os.fork(). I have socket.TCP_CORK. The<br>
> "textualization" of Python3 seems part of a conscious effort to make<br>
> Python more Java-esque.</p>
<p dir="ltr">It's not just the JVM that says text and binary APIs should be separate - it's every widely used operating system services layer except POSIX. The POSIX way works well *if* everyone reliably encodes things as UTF-8 or always uses encoding detection, but its failure mode is unfortunately silent data corruption.</p>

<p dir="ltr">That said, there's a lot of Python software that is POSIX specific, where bytes paths would be the least of the barriers to porting to Windows or Jython. I'm personally +1 on consistently allowing binary paths in lower level APIs, but disallowing them in higher level explicitly cross platform abstractions like pathlib.</p>

<p dir="ltr">Regards,<br>
Nick.</p>
<p dir="ltr">><br>
><br>
> Marko<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>