Skip to content
Prev Previous commit
Next Next commit
bpo-24899: removing documentation for pathlib.Path.absolute and defer…
…ring to bpo-29688
  • Loading branch information
slashfoo committed May 26, 2017
commit 955846e95cbfc9d6323e4259aa855e4bb7bba39f
16 changes: 0 additions & 16 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -636,22 +636,6 @@ Concrete paths provide the following methods in addition to pure paths
methods. Many of these methods can raise an :exc:`OSError` if a system
call fails (for example because the path doesn't exist):

.. method:: Path.absolute()

Return an absolute version of this path. This function works
even if the path doesn't point to anything.

No normalization is done, i.e. all ``.`` and ``..`` will be kept along.
Use :meth:`Path.resolve` to get the canonical path to a file.

Usage example::

>>> Path.cwd()
PosixPath('/dev')
>>> Path('null').absolute()
PosixPath('/dev/null')


.. classmethod:: Path.cwd()

Return a new path object representing the current directory (as returned
Expand Down