mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] GH-104375: Use versionchanged
to describe new arguments in pathlib docs (GH-104376, GH-106058)
(cherry picked from commit 4a6c84fc1e
)
This commit is contained in:
parent
de1c090879
commit
ef58c0428d
1 changed files with 12 additions and 10 deletions
|
@ -585,8 +585,8 @@ Pure paths provide the following methods and properties:
|
||||||
|
|
||||||
Set *case_sensitive* to ``True`` or ``False`` to override this behaviour.
|
Set *case_sensitive* to ``True`` or ``False`` to override this behaviour.
|
||||||
|
|
||||||
.. versionadded:: 3.12
|
.. versionchanged:: 3.12
|
||||||
The *case_sensitive* argument.
|
The *case_sensitive* parameter was added.
|
||||||
|
|
||||||
|
|
||||||
.. method:: PurePath.relative_to(other, walk_up=False)
|
.. method:: PurePath.relative_to(other, walk_up=False)
|
||||||
|
@ -627,8 +627,8 @@ Pure paths provide the following methods and properties:
|
||||||
are present in the path; call :meth:`~Path.resolve` first if
|
are present in the path; call :meth:`~Path.resolve` first if
|
||||||
necessary to resolve symlinks.
|
necessary to resolve symlinks.
|
||||||
|
|
||||||
.. versionadded:: 3.12
|
.. versionchanged:: 3.12
|
||||||
The *walk_up* argument (old behavior is the same as ``walk_up=False``).
|
The *walk_up* parameter was added (old behavior is the same as ``walk_up=False``).
|
||||||
|
|
||||||
.. deprecated-removed:: 3.12 3.14
|
.. deprecated-removed:: 3.12 3.14
|
||||||
|
|
||||||
|
@ -928,8 +928,9 @@ call fails (for example because the path doesn't exist).
|
||||||
Return only directories if *pattern* ends with a pathname components
|
Return only directories if *pattern* ends with a pathname components
|
||||||
separator (:data:`~os.sep` or :data:`~os.altsep`).
|
separator (:data:`~os.sep` or :data:`~os.altsep`).
|
||||||
|
|
||||||
.. versionadded:: 3.12
|
.. versionchanged:: 3.12
|
||||||
The *case_sensitive* argument.
|
The *case_sensitive* parameter was added.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Path.group()
|
.. method:: Path.group()
|
||||||
|
|
||||||
|
@ -1313,8 +1314,8 @@ call fails (for example because the path doesn't exist).
|
||||||
infinite loop is encountered along the resolution path, :exc:`RuntimeError`
|
infinite loop is encountered along the resolution path, :exc:`RuntimeError`
|
||||||
is raised.
|
is raised.
|
||||||
|
|
||||||
.. versionadded:: 3.6
|
.. versionchanged:: 3.6
|
||||||
The *strict* argument (pre-3.6 behavior is strict).
|
The *strict* parameter was added (pre-3.6 behavior is strict).
|
||||||
|
|
||||||
.. method:: Path.rglob(pattern, *, case_sensitive=None)
|
.. method:: Path.rglob(pattern, *, case_sensitive=None)
|
||||||
|
|
||||||
|
@ -1340,8 +1341,9 @@ call fails (for example because the path doesn't exist).
|
||||||
Return only directories if *pattern* ends with a pathname components
|
Return only directories if *pattern* ends with a pathname components
|
||||||
separator (:data:`~os.sep` or :data:`~os.altsep`).
|
separator (:data:`~os.sep` or :data:`~os.altsep`).
|
||||||
|
|
||||||
.. versionadded:: 3.12
|
.. versionchanged:: 3.12
|
||||||
The *case_sensitive* argument.
|
The *case_sensitive* parameter was added.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Path.rmdir()
|
.. method:: Path.rmdir()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue