mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
This commit is contained in:
commit
8d0c478601
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