https://github.com/python/cpython/commit/fa9a369044860d720387573eea5f709658146211 commit: fa9a369044860d720387573eea5f709658146211 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2025-07-21T18:29:22Z summary:
[3.14] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (#136947) gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (cherry picked from commit 322442945084ea9055f86a17fa5096b11ba5b344) Co-authored-by: sobolevn <[email protected]> files: M Doc/library/os.path.rst diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 734b6ef5d5d57c..2ce1bd29d373ff 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -118,7 +118,7 @@ the :mod:`glob` module.) Accepts a :term:`path-like object`. -.. function:: dirname(path) +.. function:: dirname(path, /) Return the directory name of pathname *path*. This is the first element of the pair returned by passing *path* to the function :func:`split`. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
