diff options
author | Eivind Teig <eivind.teig@gmail.com> | 2019-02-11 10:47:09 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-11 10:47:09 (GMT) |
commit | 537b6caa565ec2fc304ba6f4400cd347ce2af64b (patch) | |
tree | 2a9d75955d62435a872e1540ea77ec0ed222dc1c /Doc/library/pathlib.rst | |
parent | 9db56fb8faaa3cd66e7fe82740a4ae4d786bb27f (diff) | |
download | cpython-537b6caa565ec2fc304ba6f4400cd347ce2af64b.zip cpython-537b6caa565ec2fc304ba6f4400cd347ce2af64b.tar.gz cpython-537b6caa565ec2fc304ba6f4400cd347ce2af64b.tar.bz2 |
bpo-22062: Updated docstring and documentation for pathlib (GH-8519)
Original patch by Mike Short
https://bugs.python.org/issue22062
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 6aebe97..450e8ff 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -728,7 +728,7 @@ call fails (for example because the path doesn't exist). .. method:: Path.glob(pattern) - Glob the given *pattern* in the directory represented by this path, + Glob the given relative *pattern* in the directory represented by this path, yielding all matching files (of any kind):: >>> sorted(Path('.').glob('*.py')) @@ -980,8 +980,8 @@ call fails (for example because the path doesn't exist). .. method:: Path.rglob(pattern) - This is like calling :meth:`Path.glob` with "``**``" added in front of the - given *pattern*:: + This is like calling :func:`Path.glob` with "``**/``" added in front of the + given relative *pattern*:: >>> sorted(Path().rglob("*.py")) [PosixPath('build/lib/pathlib.py'), |