Skip to content

Commit 773d53d

Browse files
[3.12] gh-115664: Fix chronological ordering of versionadded and versionchanged directives (GH-115676) (#115678)
1 parent a08be89 commit 773d53d

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

Doc/library/codecs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,13 +1542,13 @@ This module implements the ANSI codepage (CP_ACP).
15421542

15431543
.. availability:: Windows.
15441544

1545-
.. versionchanged:: 3.3
1546-
Support any error handler.
1547-
15481545
.. versionchanged:: 3.2
15491546
Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used
15501547
to encode, and ``'ignore'`` to decode.
15511548

1549+
.. versionchanged:: 3.3
1550+
Support any error handler.
1551+
15521552

15531553
:mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature
15541554
-------------------------------------------------------------

Doc/library/math.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ Number-theoretic and representation functions
239239

240240
See also :func:`math.ulp`.
241241

242+
.. versionadded:: 3.9
243+
242244
.. versionchanged:: 3.12
243245
Added the *steps* argument.
244246

245-
.. versionadded:: 3.9
246-
247247
.. function:: perm(n, k=None)
248248

249249
Return the number of ways to choose *k* items from *n* items
@@ -680,11 +680,11 @@ Constants
680680
>>> math.isnan(float('nan'))
681681
True
682682

683+
.. versionadded:: 3.5
684+
683685
.. versionchanged:: 3.11
684686
It is now always available.
685687

686-
.. versionadded:: 3.5
687-
688688

689689
.. impl-detail::
690690

Doc/library/shutil.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,16 @@ Directory and files operations
274274

275275
.. audit-event:: shutil.copytree src,dst shutil.copytree
276276

277-
.. versionchanged:: 3.3
278-
Copy metadata when *symlinks* is false.
279-
Now returns *dst*.
280-
281277
.. versionchanged:: 3.2
282278
Added the *copy_function* argument to be able to provide a custom copy
283279
function.
284280
Added the *ignore_dangling_symlinks* argument to silence dangling symlinks
285281
errors when *symlinks* is false.
286282

283+
.. versionchanged:: 3.3
284+
Copy metadata when *symlinks* is false.
285+
Now returns *dst*.
286+
287287
.. versionchanged:: 3.8
288288
Platform-specific fast-copy syscalls may be used internally in order to
289289
copy the file more efficiently. See

Doc/library/sys.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ always available.
1616
On POSIX systems where Python was built with the standard ``configure``
1717
script, this contains the ABI flags as specified by :pep:`3149`.
1818

19+
.. versionadded:: 3.2
20+
1921
.. versionchanged:: 3.8
2022
Default flags became an empty string (``m`` flag for pymalloc has been
2123
removed).
2224

23-
.. versionadded:: 3.2
25+
.. availability:: Unix.
2426

2527

2628
.. function:: addaudithook(hook)

Doc/library/venv.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,15 @@ creation according to their needs, the :class:`EnvBuilder` class.
276276
the virtual environment.
277277

278278

279-
.. versionchanged:: 3.12
280-
The attribute ``lib_path`` was added to the context, and the context
281-
object was documented.
282-
283279
.. versionchanged:: 3.11
284280
The *venv*
285281
:ref:`sysconfig installation scheme <installation_paths>`
286282
is used to construct the paths of the created directories.
287283

284+
.. versionchanged:: 3.12
285+
The attribute ``lib_path`` was added to the context, and the context
286+
object was documented.
287+
288288
.. method:: create_configuration(context)
289289

290290
Creates the ``pyvenv.cfg`` configuration file in the environment.

Doc/using/venv-create.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ used at environment creation time). It also creates an (initially empty)
1414
``Lib\site-packages``). If an existing directory is specified, it will be
1515
re-used.
1616
17+
.. versionchanged:: 3.5
18+
The use of ``venv`` is now recommended for creating virtual environments.
19+
1720
.. deprecated:: 3.6
1821
``pyvenv`` was the recommended tool for creating virtual environments for
1922
Python 3.3 and 3.4, and is
2023
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
2124
22-
.. versionchanged:: 3.5
23-
The use of ``venv`` is now recommended for creating virtual environments.
24-
2525
.. highlight:: none
2626
2727
On Windows, invoke the ``venv`` command as follows::

0 commit comments

Comments
 (0)