mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-115664: Fix chronological ordering of versionadded and versionchanged directives (#115676)
This commit is contained in:
parent
e47ecbd042
commit
b02ab65e80
6 changed files with 20 additions and 20 deletions
|
@ -1541,13 +1541,13 @@ This module implements the ANSI codepage (CP_ACP).
|
||||||
|
|
||||||
.. availability:: Windows.
|
.. availability:: Windows.
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
|
||||||
Support any error handler.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used
|
Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used
|
||||||
to encode, and ``'ignore'`` to decode.
|
to encode, and ``'ignore'`` to decode.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.3
|
||||||
|
Support any error handler.
|
||||||
|
|
||||||
|
|
||||||
:mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature
|
:mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
|
|
@ -239,11 +239,11 @@ Number-theoretic and representation functions
|
||||||
|
|
||||||
See also :func:`math.ulp`.
|
See also :func:`math.ulp`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.9
|
||||||
|
|
||||||
.. versionchanged:: 3.12
|
.. versionchanged:: 3.12
|
||||||
Added the *steps* argument.
|
Added the *steps* argument.
|
||||||
|
|
||||||
.. versionadded:: 3.9
|
|
||||||
|
|
||||||
.. function:: perm(n, k=None)
|
.. function:: perm(n, k=None)
|
||||||
|
|
||||||
Return the number of ways to choose *k* items from *n* items
|
Return the number of ways to choose *k* items from *n* items
|
||||||
|
@ -680,11 +680,11 @@ Constants
|
||||||
>>> math.isnan(float('nan'))
|
>>> math.isnan(float('nan'))
|
||||||
True
|
True
|
||||||
|
|
||||||
|
.. versionadded:: 3.5
|
||||||
|
|
||||||
.. versionchanged:: 3.11
|
.. versionchanged:: 3.11
|
||||||
It is now always available.
|
It is now always available.
|
||||||
|
|
||||||
.. versionadded:: 3.5
|
|
||||||
|
|
||||||
|
|
||||||
.. impl-detail::
|
.. impl-detail::
|
||||||
|
|
||||||
|
|
|
@ -274,16 +274,16 @@ Directory and files operations
|
||||||
|
|
||||||
.. audit-event:: shutil.copytree src,dst shutil.copytree
|
.. audit-event:: shutil.copytree src,dst shutil.copytree
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
|
||||||
Copy metadata when *symlinks* is false.
|
|
||||||
Now returns *dst*.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
Added the *copy_function* argument to be able to provide a custom copy
|
Added the *copy_function* argument to be able to provide a custom copy
|
||||||
function.
|
function.
|
||||||
Added the *ignore_dangling_symlinks* argument to silence dangling symlinks
|
Added the *ignore_dangling_symlinks* argument to silence dangling symlinks
|
||||||
errors when *symlinks* is false.
|
errors when *symlinks* is false.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.3
|
||||||
|
Copy metadata when *symlinks* is false.
|
||||||
|
Now returns *dst*.
|
||||||
|
|
||||||
.. versionchanged:: 3.8
|
.. versionchanged:: 3.8
|
||||||
Platform-specific fast-copy syscalls may be used internally in order to
|
Platform-specific fast-copy syscalls may be used internally in order to
|
||||||
copy the file more efficiently. See
|
copy the file more efficiently. See
|
||||||
|
|
|
@ -16,12 +16,12 @@ always available.
|
||||||
On POSIX systems where Python was built with the standard ``configure``
|
On POSIX systems where Python was built with the standard ``configure``
|
||||||
script, this contains the ABI flags as specified by :pep:`3149`.
|
script, this contains the ABI flags as specified by :pep:`3149`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.2
|
||||||
|
|
||||||
.. versionchanged:: 3.8
|
.. versionchanged:: 3.8
|
||||||
Default flags became an empty string (``m`` flag for pymalloc has been
|
Default flags became an empty string (``m`` flag for pymalloc has been
|
||||||
removed).
|
removed).
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
|
||||||
|
|
||||||
.. availability:: Unix.
|
.. availability:: Unix.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -286,15 +286,15 @@ creation according to their needs, the :class:`EnvBuilder` class.
|
||||||
the virtual environment.
|
the virtual environment.
|
||||||
|
|
||||||
|
|
||||||
.. versionchanged:: 3.12
|
|
||||||
The attribute ``lib_path`` was added to the context, and the context
|
|
||||||
object was documented.
|
|
||||||
|
|
||||||
.. versionchanged:: 3.11
|
.. versionchanged:: 3.11
|
||||||
The *venv*
|
The *venv*
|
||||||
:ref:`sysconfig installation scheme <installation_paths>`
|
:ref:`sysconfig installation scheme <installation_paths>`
|
||||||
is used to construct the paths of the created directories.
|
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)
|
.. method:: create_configuration(context)
|
||||||
|
|
||||||
Creates the ``pyvenv.cfg`` configuration file in the environment.
|
Creates the ``pyvenv.cfg`` configuration file in the environment.
|
||||||
|
|
|
@ -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
|
``Lib\site-packages``). If an existing directory is specified, it will be
|
||||||
re-used.
|
re-used.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.5
|
||||||
|
The use of ``venv`` is now recommended for creating virtual environments.
|
||||||
|
|
||||||
.. deprecated:: 3.6
|
.. deprecated:: 3.6
|
||||||
``pyvenv`` was the recommended tool for creating virtual environments for
|
``pyvenv`` was the recommended tool for creating virtual environments for
|
||||||
Python 3.3 and 3.4, and is
|
Python 3.3 and 3.4, and is
|
||||||
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
|
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
|
||||||
|
|
||||||
.. versionchanged:: 3.5
|
|
||||||
The use of ``venv`` is now recommended for creating virtual environments.
|
|
||||||
|
|
||||||
.. highlight:: none
|
.. highlight:: none
|
||||||
|
|
||||||
On Windows, invoke the ``venv`` command as follows::
|
On Windows, invoke the ``venv`` command as follows::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue