8000 [3.11] [3.12] gh-115664: Fix ordering of more versionadded and versio… · serhiy-storchaka/cpython@2eb65bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 2eb65bb

Browse files
[3.11] [3.12] pythongh-115664: Fix ordering of more versionadded and versionchanged directives (pythonGH-116298) (pythonGH-116450)
(cherry picked from commit 1e75fe1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 808a776)
1 parent 22eb97c commit 2eb65bb

19 files changed

+59
-80
lines changed

Doc/c-api/contextvars.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Context Variables Objects
66
-------------------------
77

88
.. _contextvarsobjects_pointertype_change:
9+
.. versionadded:: 3.7
10+
911
.. versionchanged:: 3.7.1
1012

1113
.. note::
@@ -24,8 +26,6 @@ Context Variables Objects
2426
See :issue:`34762` for more details.
2527

2628

27-
.. versionadded:: 3.7
28-
2929
This section details the public C API for the :mod:`contextvars` module.
3030

3131
.. c:type:: PyContext

Doc/c-api/import.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Importing Modules
281281
282282
The module name, as an ASCII encoded string.
283283
284-
.. c: member:: PyObject* (*initfunc)(void)
284+
.. c:member:: PyObject* (*initfunc)(void)
285285
286286
Initialization function for a module built into the interpreter.
287287

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,14 +1533,14 @@ pointer and a void pointer argument.
15331533
function is generally **not** suitable for calling Python code from
15341534
arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
15351535
1536+
.. versionadded:: 3.1
1537+
15361538
.. versionchanged:: 3.9
15371539
If this function is called in a subinterpreter, the function *func* is
15381540
now scheduled to be called from the subinterpreter, rather than being
15391541
called from the main interpreter. Each subinterpreter now has its own
15401542
list of scheduled calls.
15411543
1542-
.. versionadded:: 3.1
1543-
15441544
.. _profiling:
15451545
15461546
Profiling and Tracing

Doc/library/asyncio-eventloop.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,9 @@ Opening network connections
588588
The *family*, *proto*, *flags*, *reuse_address*, *reuse_port*,
589589
*allow_broadcast*, and *sock* parameters were added.
590590

591+
.. versionchanged:: 3.8
592+
Added support for Windows.
593+
591594
.. versionchanged:: 3.8.1
592595
The *reuse_address* parameter is no longer supported, as using
593596
:ref:`socket.SO_REUSEADDR <socket-unix-constants>`
@@ -605,9 +608,6 @@ Opening network connections
605608
prevents processes with differing UIDs from assigning sockets to the same
606609
socket address.
607610

608-
.. versionchanged:: 3.8
609-
Added support for Windows.
610-
611611
.. versionchanged:: 3.11
612612
The *reuse_address* parameter, disabled since Python 3.8.1,
613613
3.7.6 and 3.6.10, has been entirely removed.

Doc/library/bz2.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ The :mod:`bz2` module contains:
156156
Support was added for *filename* being a :term:`file object` instead of an
157157
actual filename.
158158

159-
.. versionchanged:: 3.3
160159
The ``'a'`` (append) mode was added, along with support for reading
161160
multi-stream files.
162161

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ superset relationships: ``==``, ``!=``, ``<``, ``<=``, ``>``, ``>=``.
342342
All of those tests treat missing elements as having zero counts so that
343343
``Counter(a=1) == Counter(a=1, b=0)`` returns true.
344344

345-
.. versionadded:: 3.10
345+
.. versionchanged:: 3.10
346346
Rich comparison operations were added.
347347

348348
.. versionchanged:: 3.10

Doc/library/faulthandler.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ Dumping the tracebacks after a timeout
118118

119119
This function is implemented using a watchdog thread.
120120

121-
.. versionchanged:: 3.7
122-
This function is now always available.
123-
124121
.. versionchanged:: 3.5
125122
Added support for passing file descriptor to this function.
126123

124+
.. versionchanged:: 3.7
125+
This function is now always available.
126+
127127
.. function:: cancel_dump_traceback_later()
128128

129129
Cancel the last call to :func:`dump_traceback_later`.

Doc/library/functools.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,13 +650,9 @@ The :mod:`functools` module defines the following functions:
650650
on the wrapper function). :exc:`AttributeError` is still raised if the
651651
wrapper function itself is missing any attributes named in *updated*.
652652

653-
.. versionadded:: 3.2
654-
Automatic addition of the ``__wrapped__`` attribute.
655-
656-
.. versionadded:: 3.2
657-
Copying of the ``__annotations__`` attribute by default.
658-
659653
.. versionchanged:: 3.2
654+
The ``__wrapped__`` attribute is now automatically added.
655+
The ``__annotations__`` attribute is now copied by default.
660656
Missing attributes no longer trigger an :exc:`AttributeError`.
661657

662658
.. versionchanged:: 3.4

Doc/library/hashlib.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ accessible by name via :func:`new`. See :data:`algorithms_available`.
7777
SHA3 (Keccak) and SHAKE constructors :func:`sha3_224`, :func:`sha3_256`,
7878
:func:`sha3_384`, :func:`sha3_512`, :func:`shake_128`, :func:`shake_256`
7979
were added.
80-
81-
.. versionadded:: 3.6
8280
:func:`blake2b` and :func:`blake2s` were added.
8381

8482
.. _hashlib-usedforsecurity:

Doc/library/importlib.metadata.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ all the metadata in a JSON-compatible form per :PEP:`566`::
218218
The ``Description`` is now included in the metadata when presented
219219
through the payload. Line continuation characters have been removed.
220220

221-
.. versionadded:: 3.10
222221
The ``json`` attribute was added.
223222

224223

0 commit comments

Comments
 (0)
0