Visitar URL original
glob module docs in wrong order · Issue #110417 · python/cpython · GitHub
Skip to content

glob module docs in wrong order #110417

Description

@barneygale

The documentation of the glob module is in a slightly odd order:

  1. A description of the globbing language (wildcards etc)
  2. A "see also: pathlib" block
  3. Function documentation:
    a. glob()
    b. iglob()
    c. escape()
  4. Two examples of using glob()
  5. A "see also: fnmatch" block

In particular, the description of glob() and the examples of its usage are interrupted by descriptions of iglob() and escape().

I think this might be better:

  1. A description of the globbing language (wildcards etc)
  2. A "see also: fnmatch" block
  3. A "see also: pathlib" block
  4. Function documentation:
    a. glob(), including two examples of its usage
    b. iglob()
    c. escape()

Linked PRs

Activity

  1. added a commit that references this issue on Oct 5, 2023
  2. added 2 commits that reference this issue on Nov 13, 2023
  3. terryjreedy commented on Nov 13, 2023

    @terryjreedy
    Member

    Why not backport? Conflicts from changes?

  4. barneygale commented on Nov 13, 2023

    @barneygale
    ContributorAuthor

    Conflicts, and the changes in 3.12 and prior seem to minor to be worth it I think.

    I can backport if you think it's worthwhile?

  5. added a commit that references this issue on Feb 11, 2024
  6. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions