https://github.com/python/cpython/commit/2d0fac49d5268a8804f3a7581ed650e3b79e0fb9
commit: 2d0fac49d5268a8804f3a7581ed650e3b79e0fb9
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: sobolevn <m...@sobolevn.me>
date: 2025-07-21T18:28:55Z
summary:

[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 <m...@sobolevn.me>

files:
M Doc/library/os.path.rst

diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index b1ccb64143a55e..77abf6a4fa32bf 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 -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to