mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
This commit is contained in:
parent
e173c07502
commit
8ad751e024
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue