Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ we also call *flavours*:
A subclass of :class:`PurePath`, this path flavour represents non-Windows
filesystem paths::

>>> PurePosixPath('/etc')
PurePosixPath('/etc')
>>> PurePosixPath('/etc/hosts')
PurePosixPath('/etc/hosts')

*pathsegments* is specified similarly to :class:`PurePath`.

Expand All @@ -177,8 +177,8 @@ we also call *flavours*:
A subclass of :class:`PurePath`, this path flavour represents Windows
filesystem paths, including `UNC paths`_::

>>> PureWindowsPath('c:/Program Files/')
PureWindowsPath('c:/Program Files')
>>> PureWindowsPath('c:/', 'Users', 'Ximénez')
PureWindowsPath('c:/Users/Ximénez')
>>> PureWindowsPath('//server/share/file')
PureWindowsPath('//server/share/file')

Expand Down Expand Up @@ -762,8 +762,8 @@ calls on path objects. There are three ways to instantiate concrete paths:
A subclass of :class:`Path` and :class:`PurePosixPath`, this class
represents concrete non-Windows filesystem paths::

>>> PosixPath('/etc')
PosixPath('/etc')
>>> PosixPath('/etc/hosts')
PosixPath('/etc/hosts')

*pathsegments* is specified similarly to :class:`PurePath`.

Expand All @@ -772,8 +772,8 @@ calls on path objects. There are three ways to instantiate concrete paths:
A subclass of :class:`Path` and :class:`PureWindowsPath`, this class
represents concrete Windows filesystem paths::

>>> WindowsPath('c:/Program Files/')
WindowsPath('c:/Program Files')
>>> WindowsPath('c:/', 'Users', 'Ximénez')
WindowsPath('c:/Users/Ximénez')

*pathsegments* is specified similarly to :class:`PurePath`.

Expand Down