https://github.com/python/cpython/commit/bcc0552574a68610d943ba0954176cddd560cc51
commit: bcc0552574a68610d943ba0954176cddd560cc51
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-01-08T13:46:33Z
summary:

[3.13] gh-143513: Clarify changed argument name of `ResourceReader.is_resource` 
(GH-143523) (GH-143563)

gh-143513: Clarify changed argument name of `ResourceReader.is_resource` 
(GH-143523)
(cherry picked from commit 5462002bbefd6cb79716828051beae94de8f2529)

Co-authored-by: Alex Willmer <[email protected]>

files:
M Doc/library/importlib.resources.abc.rst

diff --git a/Doc/library/importlib.resources.abc.rst 
b/Doc/library/importlib.resources.abc.rst
index 8253a33f591a0b..45979c5691270a 100644
--- a/Doc/library/importlib.resources.abc.rst
+++ b/Doc/library/importlib.resources.abc.rst
@@ -63,11 +63,14 @@
        If the resource does not concretely exist on the file system,
        raise :exc:`FileNotFoundError`.
 
-    .. method:: is_resource(name)
+    .. method:: is_resource(path)
        :abstractmethod:
 
-       Returns ``True`` if the named *name* is considered a resource.
-       :exc:`FileNotFoundError` is raised if *name* does not exist.
+       Returns ``True`` if the named *path* is considered a resource.
+       :exc:`FileNotFoundError` is raised if *path* does not exist.
+
+       .. versionchanged:: 3.10
+          The argument *name* was renamed to *path*.
 
     .. method:: contents()
        :abstractmethod:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to