[Python-checkins] cpython: Wording changes to pathlib docs.

andrew.kuchling python-checkins at python.org
Fri Nov 22 21:45:17 CET 2013


http://hg.python.org/cpython/rev/cce14bc9b675
changeset:   87371:cce14bc9b675
user:        Andrew Kuchling <amk at amk.ca>
date:        Fri Nov 22 15:45:02 2013 -0500
summary:
  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".

files:
  Doc/library/pathlib.rst |  7 +++----
  1 files changed, 3 insertions(+), 4 deletions(-)


diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -20,7 +20,7 @@
 a :ref:`concrete path <concrete-paths>` for the current platform.
 
 .. note::
-   This module module has been included in the standard library on a
+   This module has been included in the standard library on a
    :term:`provisional basis <provisional package>`. Backwards incompatible
    changes (up to and including removal of the package) may occur if deemed
    necessary by the core developers.
@@ -250,7 +250,7 @@
 Methods and properties
 ^^^^^^^^^^^^^^^^^^^^^^
 
-Pure paths provide the following methods an properties:
+Pure paths provide the following methods and properties:
 
 .. data:: PurePath.drive
 
@@ -454,7 +454,7 @@
 
 .. method:: PurePath.joinpath(*other)
 
-   Calling this method is equivalent to indexing the path with each of
+   Calling this method is equivalent to combining the path with each of
    the *other* arguments in turn::
 
       >>> PurePosixPath('/etc').joinpath('passwd')
@@ -871,4 +871,3 @@
 
    Remove this file or symbolic link.  If the path points to a directory,
    use :func:`Path.rmdir` instead.
-

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list