]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] bpo-41066: Update the comparison section for os vs pathlib (GH-21261) (GH-21864)
authorAntoine Pitrou <antoine@python.org>
Thu, 13 Aug 2020 20:03:18 +0000 (22:03 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 20:03:18 +0000 (13:03 -0700)
(cherry picked from commit 0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Automerge-Triggered-By: @pitrou
Doc/library/pathlib.rst

index b900d093b7565b382707f75856240ced07538763..6df352f0e3913206b827a21d4b64eb0c10676f93 100644 (file)
@@ -1139,9 +1139,12 @@ os and os.path                         pathlib
 :func:`os.path.exists`                 :meth:`Path.exists`
 :func:`os.path.expanduser`             :meth:`Path.expanduser` and
                                        :meth:`Path.home`
+:func:`os.listdir`                     :meth:`Path.iterdir`
 :func:`os.path.isdir`                  :meth:`Path.is_dir`
 :func:`os.path.isfile`                 :meth:`Path.is_file`
 :func:`os.path.islink`                 :meth:`Path.is_symlink`
+:func:`os.link`                        :meth:`Path.link_to`
+:func:`os.symlink`                     :meth:`Path.symlink_to`
 :func:`os.stat`                        :meth:`Path.stat`,
                                        :meth:`Path.owner`,
                                        :meth:`Path.group`