GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reorganize `os.path` documentation · Issue #130536 · python/cpython

Reorganize os.path documentation #130536

New issue
Copy link
New issue
Copy link
Open
Open
Reorganize os.path documentation#130536
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasy

Description

@picnixz
picnixz
opened on Feb 25, 2025
Issue body actions

The os.path documentation is alphabetically sorted. That's great because it's easy to find a function. However, this also means that functions shouldn't reference other functions documented later as the reader may not have been aware of them before.

An alternative is to reorganize the documentation page so that we put at the top the most used functions such as os.path.join. The latter caused a bit of confusion in gh-130527, where neither the OP nor me remembered that os.path.join("/a", "/b") == "/b".

If reorganizing the documentation is not preferred, we should at least add .. seealso:: directives and clickable links so that any function mentioned but not yet documented at the time of reading can be easily looked up.

  • os.path.abspath contains a reference to os.path.join without a link.
  • os.path.isabs could backlink to os.path.abspath.
  • os.path.split mentions os.path.join but as it's far away, we could backlink it.
  • os.path.join mentions "If a segment is an absolute path (which on Windows requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment.". We should add an example as it would be more explicit and teaching (e.g., os.path.join("/home/foo", "/home/bar") == "/home/bar".

Linked PRs

  • gh-130536: Add details to os.path documentation #130557
  • gh-130536: Improve os.path documentation #131872
  • gh-130536: Reorganize os.path documentation #132408
  • [3.14] gh-130536: Add details to os.path documentation (GH-130557) #142800
  • [3.13] gh-130536: Add details to os.path documentation (GH-130557) #142801

Activity

  1. picnixz
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Feb 25, 2025
  2. github-project-automation
    added this to docs issueson Feb 25, 2025
  3. github-project-automation
    moved this to Todo in docs issueson Feb 25, 2025
  4. AA-Turner commented on Feb 25, 2025

    @AA-Turner
    AA-Turner
    on Feb 25, 2025
    Member
    More actions

    I think seealso is probably the least disruptive to start with?

    A

  5. picnixz commented on Feb 25, 2025

    @picnixz
    picnixz
    on Feb 25, 2025
    MemberAuthor
    More actions

    To me it's indeed the case. I know that we have Ctrl+F to find in the page, but I also know people that are happy when it's alphabetically organized. I'll quickly check which function needs cross-ref with seealso.

  6. picnixz commented on Feb 25, 2025

    @picnixz
    picnixz
    on Feb 25, 2025
    MemberAuthor
    More actions

    Ok, there's not much content to update. I've written down what needs to be done (roughly), maybe there are other places that could be improved. I'll stil mark this one as easy.

  7. picnixz
    added
    easy
    on Feb 25, 2025
  8. barneygale commented on Feb 25, 2025

    @barneygale
    barneygale
    on Feb 25, 2025
    Contributor
    More actions

    Maybe split the docs into lexical functions (split(), join(), etc) vs I/O functions (exists(), abspath(), etc)? See #119671

  9. hridyasadanand commented on Mar 29, 2025

    @hridyasadanand
    hridyasadanand
    on Mar 29, 2025 · Hidden as spam
    show commentMore actions
  10. rozeappletree commented on Jul 9, 2025

    @rozeappletree
    rozeappletree
    on Jul 9, 2025
    More actions

    Hey @picnixz if this is still open / stale can I get assigned for this? Would love to leave my footprint on os lib.

  11. AA-Turner commented on Jul 9, 2025

    @AA-Turner
    AA-Turner
    on Jul 9, 2025
    Member
    More actions

    There's an open PR but no decision has been made yet. I would advise looking somewhere else to start contributing.

    A

  12. AA-Turner commented on Jul 9, 2025

    @AA-Turner
    AA-Turner
    on Jul 9, 2025 · Hidden as duplicate
    show commentMore actions
  13. hugovk
    added a commit that references this issue on Dec 16, 2025

    gh-130536: Add details to `os.path` documentation (#130557)

    ba587ed
  14. miss-islington
    added 2 commits that reference this issue on Dec 16, 2025

    pythongh-130536: Add details to `os.path` documentation (pythonGH-130557

    1e57514

    pythongh-130536: Add details to `os.path` documentation (pythonGH-130557

    2b5da2d
  15. hugovk
    added 2 commits that reference this issue on Dec 16, 2025

    [3.14] gh-130536: Add details to `os.path` documentation (GH-130557) (#…

    f162bcc

    [3.13] gh-130536: Add details to `os.path` documentation (GH-130557) (#…

    bce4a20
  16. serhiy-storchaka
    added this to OS issues 💻on Jul 3, 2026
  17. github-project-automation
    moved this to Todo in OS issues 💻on Jul 3, 2026
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 dirDocumentation in the Doc direasy

    Projects

    • docs issues
      Status
      Todo
      Show more project fields
    • OS issues 💻
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.