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

Skip to content

Commit 7a4e2d1

Browse files
committed
Wording changes to pathlib docs.
Only possibly-controversial change: joinpath() was described as: "Calling this method is equivalent to indexing the path with each of the *other* arguments in turn." 'Indexing' is an odd word to use, because you can't subscript Path or PurePath objects, so I changed it to "combining".
1 parent e0d641a commit 7a4e2d1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/library/pathlib.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The main point of entry is the :class:`Path` class, which will instantiate
2020
a :ref:`concrete path <concrete-paths>` for the current platform.
2121

2222
.. note::
23-
This module module has been included in the standard library on a
23+
This module has been included in the standard library on a
2424
:term:`provisional basis <provisional package>`. Backwards incompatible
2525
changes (up to and including removal of the package) may occur if deemed
2626
necessary by the core developers.
@@ -250,7 +250,7 @@ property:
250250
Methods and properties
251251
^^^^^^^^^^^^^^^^^^^^^^
252252

253-
Pure paths provide the following methods an properties:
253+
Pure paths provide the following methods and properties:
254254

255255
.. data:: PurePath.drive
256256

@@ -454,7 +454,7 @@ Pure paths provide the following methods an properties:
454454

455455
.. method:: PurePath.joinpath(*other)
456456

457-
Calling this method is equivalent to indexing the path with each of
457+
Calling this method is equivalent to combining the path with each of
458458
the *other* arguments in turn::
459459

460460
>>> PurePosixPath('/etc').joinpath('passwd')
@@ -871,4 +871,3 @@ call fails (for example because the path doesn't exist):
871871

872872
Remove this file or symbolic link. If the path points to a directory,
873873
use :func:`Path.rmdir` instead.
874-

0 commit comments

Comments
 (0)