summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Schubert <brianm.schubert@gmail.com>2024-02-19 18:18:38 (GMT)
committerGitHub <noreply@github.com>2024-02-19 18:18:38 (GMT)
commit773d53d3c130d2c2ae1dcbaff08adea81910b343 (patch)
tree01db1dab1e6df84980a862b745f4b54f0e60866b
parenta08be89212ecd739c7582bdd5861e2ea3809ac3f (diff)
downloadcpython-773d53d3c130d2c2ae1dcbaff08adea81910b343.zip
cpython-773d53d3c130d2c2ae1dcbaff08adea81910b343.tar.gz
cpython-773d53d3c130d2c2ae1dcbaff08adea81910b343.tar.bz2
[3.12] gh-115664: Fix chronological ordering of versionadded and versionchanged directives (GH-115676) (#115678)
-rw-r--r--Doc/library/codecs.rst6
-rw-r--r--Doc/library/math.rst8
-rw-r--r--Doc/library/shutil.rst8
-rw-r--r--Doc/library/sys.rst4
-rw-r--r--Doc/library/venv.rst8
-rw-r--r--Doc/using/venv-create.inc6
6 files changed, 21 insertions, 19 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 9ce5848..894986c 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1542,13 +1542,13 @@ This module implements the ANSI codepage (CP_ACP).
.. availability:: Windows.
-.. versionchanged:: 3.3
- Support any error handler.
-
.. versionchanged:: 3.2
Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used
to encode, and ``'ignore'`` to decode.
+.. versionchanged:: 3.3
+ Support any error handler.
+
:mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature
-------------------------------------------------------------
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 9e58b55..55a5740 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -239,11 +239,11 @@ Number-theoretic and representation functions
See also :func:`math.ulp`.
+ .. versionadded:: 3.9
+
.. versionchanged:: 3.12
Added the *steps* argument.
- .. versionadded:: 3.9
-
.. function:: perm(n, k=None)
Return the number of ways to choose *k* items from *n* items
@@ -680,11 +680,11 @@ Constants
>>> math.isnan(float('nan'))
True
+ .. versionadded:: 3.5
+
.. versionchanged:: 3.11
It is now always available.
- .. versionadded:: 3.5
-
.. impl-detail::
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 7922696..c9d367c 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -274,16 +274,16 @@ Directory and files operations
.. audit-event:: shutil.copytree src,dst shutil.copytree
- .. versionchanged:: 3.3
- Copy metadata when *symlinks* is false.
- Now returns *dst*.
-
.. versionchanged:: 3.2
Added the *copy_function* argument to be able to provide a custom copy
function.
Added the *ignore_dangling_symlinks* argument to silence dangling symlinks
errors when *symlinks* is false.
+ .. versionchanged:: 3.3
+ Copy metadata when *symlinks* is false.
+ Now returns *dst*.
+
.. versionchanged:: 3.8
Platform-specific fast-copy syscalls may be used internally in order to
copy the file more efficiently. See
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 1984223..1672441 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -16,11 +16,13 @@ always available.
On POSIX systems where Python was built with the standard ``configure``
script, this contains the ABI flags as specified by :pep:`3149`.
+ .. versionadded:: 3.2
+
.. versionchanged:: 3.8
Default flags became an empty string (``m`` flag for pymalloc has been
removed).
- .. versionadded:: 3.2
+ .. availability:: Unix.
.. function:: addaudithook(hook)
diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst
index 8aaf505..80eb0a9 100644
--- a/Doc/library/venv.rst
+++ b/Doc/library/venv.rst
@@ -276,15 +276,15 @@ creation according to their needs, the :class:`EnvBuilder` class.
the virtual environment.
- .. versionchanged:: 3.12
- The attribute ``lib_path`` was added to the context, and the context
- object was documented.
-
.. versionchanged:: 3.11
The *venv*
:ref:`sysconfig installation scheme <installation_paths>`
is used to construct the paths of the created directories.
+ .. versionchanged:: 3.12
+ The attribute ``lib_path`` was added to the context, and the context
+ object was documented.
+
.. method:: create_configuration(context)
Creates the ``pyvenv.cfg`` configuration file in the environment.
diff --git a/Doc/using/venv-create.inc b/Doc/using/venv-create.inc
index 2fc9012..14bd1c8 100644
--- a/Doc/using/venv-create.inc
+++ b/Doc/using/venv-create.inc
@@ -14,14 +14,14 @@ used at environment creation time). It also creates an (initially empty)
``Lib\site-packages``). If an existing directory is specified, it will be
re-used.
+.. versionchanged:: 3.5
+ The use of ``venv`` is now recommended for creating virtual environments.
+
.. deprecated:: 3.6
``pyvenv`` was the recommended tool for creating virtual environments for
Python 3.3 and 3.4, and is
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
-.. versionchanged:: 3.5
- The use of ``venv`` is now recommended for creating virtual environments.
-
.. highlight:: none
On Windows, invoke the ``venv`` command as follows::