Title: Fix pathlib.Path.(r)glob doc glitches.
Type: behavior Stage: needs patch
Components: Documentation Versions: Python 3.5, Python 3.4
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, gvanrossum, pitrou, r.david.murray, serhiy.storchaka, terry.reedy
Priority: normal Keywords: easy, patch

Created on 2014-07-24 22:11 by terry.reedy, last changed 2017-03-26 07:05 by serhiy.storchaka.

File name Uploaded Description Edit
pathlib.rst.patch Mike.Short, 2016-02-16 02:52 documentation updates review Mike.Short, 2016-02-16 03:03 docstring updates review
Messages (4)
msg223902 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-07-24 22:11
1. The pattern argument for .(r)glob must be relative. I think the docstrings and doc should say so. /pattern/relative pattern/

For rglob: '''This is like calling glob() with “**” added in front of the given pattern:'''

2. Currently "glob()" links to the glob module, which does not recognize '**'. It should link to back up to the Pathlib.glob entry, where the effect of '**' is defined. (I don't currently know the markup for that.)

3. I interpret '''“**” added in front of the given pattern:''' to mean '**' + pattern, so that '*.py' would become '***.py'. It actually becomes the equivalent of '**/*.p'. So I think '**' should be either '**/' or 'a "**" component'.
msg223903 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-07-24 22:23
Do non-relative patterns even make sense?  I was surprised to get a NotImplementedError instead of a ValueError.
msg257509 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2016-01-05 01:55
Classifying as easy doc bug.
msg290511 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-26 07:05
Can you create a pull request on GitHub Mike?
Date User Action Args
2017-03-26 07:05:25serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg290511
2016-02-16 03:03:06Mike.Shortsetfiles: +
2016-02-16 02:52:55Mike.Shortsetfiles: + pathlib.rst.patch
keywords: + patch
2016-01-05 01:55:09gvanrossumsetnosy: + docs@python, gvanrossum
messages: + msg257509

assignee: docs@python
components: + Documentation
keywords: + easy
2014-07-24 22:23:24r.david.murraysetnosy: + r.david.murray
messages: + msg223903
2014-07-24 22:11:01terry.reedycreate