summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2017-08-01 23:47:50 (GMT)
committerGitHub <noreply@github.com>2017-08-01 23:47:50 (GMT)
commit47320a652e872003f3dd3a9db4243067b09dd316 (patch)
tree9025b17f8070268f054ce16ad433cf083bd53fcb /Doc
parent9d8e6ec8d2f7d6abd6c526adabacc13fd1ab4ee1 (diff)
downloadcpython-47320a652e872003f3dd3a9db4243067b09dd316.zip
cpython-47320a652e872003f3dd3a9db4243067b09dd316.tar.gz
cpython-47320a652e872003f3dd3a9db4243067b09dd316.tar.bz2
Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pathlib.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 0c9bd0d..3d28a1b 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -761,6 +761,18 @@ call fails (for example because the path doesn't exist):
other errors (such as permission errors) are propagated.
+.. method:: Path.is_mount()
+
+ Return ``True`` if the path is a :dfn:`mount point`: a point in a
+ file system where a different file system has been mounted. On POSIX, the
+ function checks whether *path*'s parent, :file:`path/..`, is on a different
+ device than *path*, or whether :file:`path/..` and *path* point to the same
+ i-node on the same device --- this should detect mount points for all Unix
+ and POSIX variants. Not implemented on Windows.
+
+ .. versionadded:: 3.7
+
+
.. method:: Path.is_symlink()
Return ``True`` if the path points to a symbolic link, ``False`` otherwise.