Posixpath part of stdlib?

Is posixpath part of stdlib?

I can

import posixpath
help(posixpath)

and get
Help on module posixpath:

NAME
posixpath - Common operations on Posix pathnames.

MODULE REFERENCE
https://docs.python.org/3.12/library/posixpath.html

but https://docs.python.org/3.12/library/posixpath.html is 404

Yes - it’s documented under os.path, since it’s the os.path implementation for unix systems.

Quoting the docs for os.path:

Note: Since different operating systems have different path name conventions, there are several versions of this module in the standard library. The os.path module is always the path module suitable for the operating system Python is running on, and therefore usable for local paths. However, you can also import and use the individual modules if you want to manipulate a path that is always in one of the different formats. They all have the same interface:

  • posixpath for UNIX-style paths
  • ntpath for Windows paths
2 Likes

So is the 404 docstring a Documentation issue or Core Developers?

1 Like

See gh-84232, which is about a different module but is the same generic issue. The MODULE REFERENCE link is just a template that takes the module name, it currently makes no attempt to ensure that it’s actually available.

2 Likes

I’m intrepreting this as “This has been fixed but isn’t in the main code branch and hopefully will be fixed in a future update?”

The issue is still open, it is not fixed.

1 Like