Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ResourceReader.is_resource
1 parent efaa56f commit 5462002Copy full SHA for 5462002
1 file changed
Doc/library/importlib.resources.abc.rst
@@ -63,11 +63,14 @@
63
If the resource does not concretely exist on the file system,
64
raise :exc:`FileNotFoundError`.
65
66
- .. method:: is_resource(name)
+ .. method:: is_resource(path)
67
:abstractmethod:
68
69
- Returns ``True`` if the named *name* is considered a resource.
70
- :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.
71
+
72
+ .. versionchanged:: 3.10
73
+ The argument *name* was renamed to *path*.
74
75
.. method:: contents()
76
0 commit comments