]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Jul 2025 18:28:55 +0000 (20:28 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Jul 2025 18:28:55 +0000 (18:28 +0000)
gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946)
(cherry picked from commit 322442945084ea9055f86a17fa5096b11ba5b344)

Co-authored-by: sobolevn <mail@sobolevn.me>
Doc/library/os.path.rst

index b1ccb64143a55ed0e26df7c3ff990aaef9d44b89..77abf6a4fa32bfa345ac98465b15def8ee3ea6ba 100644 (file)
@@ -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`.