]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41066: Update the comparison section for os vs pathlib (GH-21261)
authorSrinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Thu, 13 Aug 2020 19:52:04 +0000 (01:22 +0530)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 19:52:04 +0000 (21:52 +0200)
Doc/library/pathlib.rst

index bf6fee44df2c8851cb7eebf1db6858189858e0a6..f705d15b8d4f1a98334ab515512f47a9e88673d9 100644 (file)
@@ -1196,9 +1196,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.readlink`                    :meth:`Path.readlink`
 :func:`os.stat`                        :meth:`Path.stat`,
                                        :meth:`Path.owner`,