[Python-ideas] Working with Path objects: p-strings?
Sven R. Kunze
srkunze at mail.de
Tue Mar 29 05:00:11 EDT 2016
On 29.03.2016 09:51, Paul Moore wrote:
> On 29 March 2016 at 08:31, Sven R. Kunze <srkunze at mail.de> wrote:
>> Paths are strings (even for the os).
> On Unix, paths are bytestrings, not strings
Yep.
> (in Python 3, string = Unicode string),
Do you mean str? When reading the docs, let's say:
https://docs.python.org/3.5/library/stdtypes.html and search for
"string" you find a lot of places where "string" is used and both "str"
and "bytes" are working. ;-)
> but on Windows they are Unicode strings. Having an
> abstraction over this OS difference is useful.
Indeed true.
Best,
Sven
More information about the Python-ideas
mailing list