Commit 6f9c55d1 authored by Xtreak's avatar Xtreak Committed by Miss Islington (bot)

bpo-34825: Add more entries to os to pathlib reference table (GH-9608)



The added functions are as below :

| os module     | Pathlib       |
| ------------- | ------------- |
| os.chmod   | Path.chmod  |
| os.mkdir  | Path.mkdir  | 
| os.rename | Path.rename |
| os.replace | Path.replace |
| os.rmdir  | Path.rmdir |
| os.remove, os.unlink | Path.unlink |
| os.path.samefile | Path.samefile |

Thanks


https://bugs.python.org/issue34825
parent 07fbbfde
...@@ -1095,10 +1095,16 @@ Below is a table mapping various :mod:`os` functions to their corresponding ...@@ -1095,10 +1095,16 @@ Below is a table mapping various :mod:`os` functions to their corresponding
overlapping use-cases, their semantics differ enough to warrant not overlapping use-cases, their semantics differ enough to warrant not
considering them equivalent. considering them equivalent.
============================ ============================== ==================================== ==============================
os and os.path pathlib os and os.path pathlib
============================ ============================== ==================================== ==============================
:func:`os.path.abspath` :meth:`Path.resolve` :func:`os.path.abspath` :meth:`Path.resolve`
:func:`os.chmod` :meth:`Path.chmod`
:func:`os.mkdir` :meth:`Path.mkdir`
:func:`os.rename` :meth:`Path.rename`
:func:`os.replace` :meth:`Path.replace`
:func:`os.rmdir` :meth:`Path.rmdir`
:func:`os.remove`, :func:`os.unlink` :meth:`Path.unlink`
:func:`os.getcwd` :func:`Path.cwd` :func:`os.getcwd` :func:`Path.cwd`
:func:`os.path.exists` :meth:`Path.exists` :func:`os.path.exists` :meth:`Path.exists`
:func:`os.path.expanduser` :meth:`Path.expanduser` and :func:`os.path.expanduser` :meth:`Path.expanduser` and
...@@ -1113,5 +1119,6 @@ os and os.path pathlib ...@@ -1113,5 +1119,6 @@ os and os.path pathlib
:func:`os.path.join` :func:`PurePath.joinpath` :func:`os.path.join` :func:`PurePath.joinpath`
:func:`os.path.basename` :data:`PurePath.name` :func:`os.path.basename` :data:`PurePath.name`
:func:`os.path.dirname` :data:`PurePath.parent` :func:`os.path.dirname` :data:`PurePath.parent`
:func:`os.path.samefile` :meth:`Path.samefile`
:func:`os.path.splitext` :data:`PurePath.suffix` :func:`os.path.splitext` :data:`PurePath.suffix`
============================ ============================== ==================================== ==============================
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment