diff options
author | Guido van Rossum <guido@python.org> | 2016-05-19 20:00:21 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-05-19 20:00:21 (GMT) |
commit | 3d4d01f614d894327bbdc1feadebd50b2d3621ff (patch) | |
tree | fda99c3acd7a179cd4f492f765ccfeaa0fea9cd7 /Doc/library/pathlib.rst | |
parent | 2a86122759f629a26dbfbc8258fc82c56c613429 (diff) | |
download | cpython-3d4d01f614d894327bbdc1feadebd50b2d3621ff.zip cpython-3d4d01f614d894327bbdc1feadebd50b2d3621ff.tar.gz cpython-3d4d01f614d894327bbdc1feadebd50b2d3621ff.tar.bz2 |
Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.
These added a path attribute to pathlib.Path objects, and docs.
Instead, we're going to use PEP 519.
(Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index cb066bd..24e2a30 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -365,24 +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. - - .. versionadded:: 3.4.5 - .. data:: PurePath.suffix The file extension of the final component, if any:: |