]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] 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:29:22 +0000 (20:29 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Jul 2025 18:29:22 +0000 (18:29 +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 734b6ef5d5d57c96324b7065244b9d46cad31c21..2ce1bd29d373ff6364b6107f9dfb2362ebedb89c 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`.