diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2015-04-11 22:08:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2015-04-11 22:08:35 (GMT) |
commit | 8d0c478601a893840f3bae15e2af1ceb964b504d (patch) | |
tree | a0b0599d97cd433cb26745e2a25452102fde4aaf /Doc | |
parent | 0ac8aa7ff3e64a93602881124f328b8f9373a855 (diff) | |
parent | 8ad751e0241b7bfbdfacff017c47794b3b0a3211 (diff) | |
download | cpython-8d0c478601a893840f3bae15e2af1ceb964b504d.zip cpython-8d0c478601a893840f3bae15e2af1ceb964b504d.tar.gz cpython-8d0c478601a893840f3bae15e2af1ceb964b504d.tar.bz2 |
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pathlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 0226ce4..2f06544 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') |