
29 Mar
2016
29 Mar
'16
11 a.m.
On 29.03.2016 09:51, Paul Moore wrote:
On 29 March 2016 at 08:31, Sven R. Kunze srkunze@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