Skip to content
Closed
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
5 changes: 5 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ right for your task, :class:`Path` is most likely what you need. It instantiates
a :ref:`concrete path <concrete-paths>` for the platform the code is running on.

Pure paths are useful in some special cases; for example:
#. Pure path objects provide path-handling operations which don't actually
access a filesystem.
Use pure paths when you need to manipulate path strings
without requiring the path to exist on disk,such as when generating paths
Comment on lines +37 to +39
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't be indented correctly and has some formatting issues such as missing spaces.

I personally don't think it adds much that isn't already covered by the list of points (but that's really for someone else to decide - I have no say here)

for remote systems or validating path formats.

#. If you want to manipulate Windows paths on a Unix machine (or vice versa).
You cannot instantiate a :class:`WindowsPath` when running on Unix, but you
Expand Down
Loading