From: sobolevn Date: Mon, 21 Jul 2025 18:22:58 +0000 (+0300) Subject: gh-136437: Document `os.path.dirname` as accepting only pos-only (#136946) X-Git-Tag: v3.15.0a1~894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=322442945084ea9055f86a17fa5096b11ba5b344;p=thirdparty%2FPython%2Fcpython.git gh-136437: Document `os.path.dirname` as accepting only pos-only (#136946) --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 5b238ad2ffc8..d59f91f2aa80 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`.