Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d0c478

Browse files
committed
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
2 parents 0ac8aa7 + 8ad751e commit 8d0c478

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/pathlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ we also call *flavours*:
106106
>>> PurePath('setup.py') # Running on a Unix machine
107107
PurePosixPath('setup.py')
108108

109-
Each element of *pathsegments* can be either a string or bytes object
110-
representing a path segment; it can also be another path object::
109+
Each element of *pathsegments* can be either a string representing a
110+
path segment, or another path object::
111111

112112
>>> PurePath('foo', 'some/path', 'bar')
113113
PurePosixPath('foo/some/path/bar')

0 commit comments

Comments
 (0)