[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report! -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7463c06f6e87 by Antoine Pitrou in branch '3.4': Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor https://hg.python.org/cpython/rev/7463c06f6e87 New changeset 386732087dfb by

[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting. The doc is wrong here: pathlib was designed so that it only accepts text strings. > If I use "surrogateescape" (see PEP383) how can I display the > fake-unicode path to the user? `print()` does seems to use strict > encoding. Should I encode it wit