From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 21 Jul 2025 18:28:55 +0000 (+0200) Subject: [3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946... X-Git-Tag: v3.13.6~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d0fac49d5268a8804f3a7581ed650e3b79e0fb9;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (#136948) gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (cherry picked from commit 322442945084ea9055f86a17fa5096b11ba5b344) Co-authored-by: sobolevn --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index b1ccb64143a5..77abf6a4fa32 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`.