[Python-ideas] Type hinting for path-related functions

Guido van Rossum guido at python.org
Tue Apr 19 13:51:13 EDT 2016


On Tue, Apr 19, 2016 at 10:36 AM, Random832 <random832 at fastmail.com> wrote:

> On Tue, Apr 19, 2016, at 12:20, Guido van Rossum wrote:
> > Also, I don't expect a future where bytes paths don't make sense, unless
> > Linux starts enforcing a normalized UTF-8 encoding in the kernel.
>
> Well, OSX does that now, but that's a whole other topic. Whether it is
> useful to represent paths as the bytes type in Python code is orthogonal
> to whether you can have paths that aren't valid strings in an encoding,
> considering that surrogateescape lets you represent any sequence of
> bytes as a str.
>

I'm sorry, I just don't see support for bytes paths going away any time
soon (regardless of the alternative you bring up), so I think it's a waste
of breath to discuss it further.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160419/a6ca0511/attachment.html>


More information about the Python-ideas mailing list