From: Antoine Pitrou Date: Sat, 11 Apr 2015 22:08:02 +0000 (+0200) Subject: Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects... X-Git-Tag: v3.5.0a4~111^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ad751e0241b7bfbdfacff017c47794b3b0a3211;p=thirdparty%2FPython%2Fcpython.git Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index ec1dc4f6168c..24e2a308dfe2 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -106,8 +106,8 @@ we also call *flavours*: >>> PurePath('setup.py') # Running on a Unix machine PurePosixPath('setup.py') - Each element of *pathsegments* can be either a string or bytes object - representing a path segment; it can also be another path object:: + Each element of *pathsegments* can be either a string representing a + path segment, or another path object:: >>> PurePath('foo', 'some/path', 'bar') PurePosixPath('foo/some/path/bar')