summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2016-05-19 20:11:17 (GMT)
committerGuido van Rossum <guido@dropbox.com>2016-05-19 20:11:17 (GMT)
commit03e6061956d10586b70eb78f3d76ce0952ee5bd8 (patch)
tree4e8bf012754eb339d45cd9d0d14b26c6c4a5b360 /Doc
parent7fa6378747dfffb983f14b9f6e760ab65a112fe3 (diff)
parent387e6e38175b853741c4f35e08791f0990bc0845 (diff)
downloadcpython-03e6061956d10586b70eb78f3d76ce0952ee5bd8.zip
cpython-03e6061956d10586b70eb78f3d76ce0952ee5bd8.tar.gz
cpython-03e6061956d10586b70eb78f3d76ce0952ee5bd8.tar.bz2
Back out pathlib.Path.path attr. (Merge 3.5->3.6)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pathlib.rst22
1 files changed, 0 insertions, 22 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 5ff8be8..ff5196d 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -365,28 +365,6 @@ Pure paths provide the following methods and properties:
''
-.. data:: PurePath.path
-
- A string representing the full path::
-
- >>> PurePosixPath('my/library/setup.py').path
- 'my/library/setup.py'
-
- This always returns the same value as ``str(p)``; it is included to
- serve as a one-off protocol. Code that wants to support both
- strings and ``pathlib.Path`` objects as filenames can write
- ``arg = getattr(arg, 'path', arg)`` to get the path as a string.
- This can then be passed to various system calls or library
- functions that expect a string. Unlike the alternative
- ``arg = str(arg)``, this will still raise an exception if an object
- of some other type is given by accident.
-
- A nice advantage is that this protocol is also supported by
- :class:`os.DirEntry` objects returned by :func:`os.scandir`.
-
- .. versionadded:: 3.4.5
- .. versionadded:: 3.5.2
-
.. data:: PurePath.suffix
The file extension of the final component, if any::