Skip to content

Commit 1e75fe1

Browse files
[3.12] gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298) (GH-116450)
(cherry picked from commit 808a776)
1 parent 0150595 commit 1e75fe1

21 files changed

+69
-93
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
@@ -292,7 +292,7 @@ Importing Modules
292292
293293
The module name, as an ASCII encoded string.
294294
295-
.. c: member:: PyObject* (*initfunc)(void)
295+
.. c:member:: PyObject* (*initfunc)(void)
296296
297297
Initialization function for a module built into the interpreter.
298298

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,14 +1822,14 @@ pointer and a void pointer argument.
18221822
function is generally **not** suitable for calling Python code from
18231823
arbitrary C threads. Instead, use the :ref:`PyGILState API<gilstate>`.
18241824
1825+
.. versionadded:: 3.1
1826+
18251827
.. versionchanged:: 3.9
18261828
If this function is called in a subinterpreter, the function *func* is
18271829
now scheduled to be called from the subinterpreter, rather than being
18281830
called from the main interpreter. Each subinterpreter now has its own
18291831
list of scheduled calls.
18301832
1831-
.. versionadded:: 3.1
1832-
18331833
.. _profiling:
18341834
18351835
Profiling and Tracing

Doc/c-api/refcounting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ of Python objects.
2323
2424
Use the :c:func:`Py_SET_REFCNT()` function to set an object reference count.
2525
26-
.. versionchanged:: 3.11
27-
The parameter type is no longer :c:expr:`const PyObject*`.
28-
2926
.. versionchanged:: 3.10
3027
:c:func:`Py_REFCNT()` is changed to the inline static function.
3128
29+
.. versionchanged:: 3.11
30+
The parameter type is no longer :c:expr:`const PyObject*`.
31+
3232
3333
.. c:function:: void Py_SET_REFCNT(PyObject *o, Py_ssize_t refcnt)
3434

Doc/library/asyncio-eventloop.rst

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

608+
.. versionchanged:: 3.8
609+
Added support for Windows.
610+
608611
.. versionchanged:: 3.8.1
609612
The *reuse_address* parameter is no longer supported, as using
610613
:ref:`socket.SO_REUSEADDR <socket-unix-constants>`
@@ -622,9 +625,6 @@ Opening network connections
622625
prevents processes with differing UIDs from assigning sockets to the same
623626
socket address.
624627

625-
.. versionchanged:: 3.8
626-
Added support for Windows.
627-
628628
.. versionchanged:: 3.11
629629
The *reuse_address* parameter, disabled since Python 3.8.1,
630630
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
@@ -343,7 +343,7 @@ superset relationships: ``==``, ``!=``, ``<``, ``<=``, ``>``, ``>=``.
343343
All of those tests treat missing elements as having zero counts so that
344344
``Counter(a=1) == Counter(a=1, b=0)`` returns true.
345345

346-
.. versionadded:: 3.10
346+
.. versionchanged:: 3.10
347347
Rich comparison operations were added.
348348

349349
.. 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
@@ -665,13 +665,9 @@ The :mod:`functools` module defines the following functions:
665665
on the wrapper function). :exc:`AttributeError` is still raised if the
666666
wrapper function itself is missing any attributes named in *updated*.
667667

668-
.. versionadded:: 3.2
669-
Automatic addition of the ``__wrapped__`` attribute.
670-
671-
.. versionadded:: 3.2
672-
Copying of the ``__annotations__`` attribute by default.
673-
674668
.. versionchanged:: 3.2
669+
The ``__wrapped__`` attribute is now automatically added.
670+
The ``__annotations__`` attribute is now copied by default.
675671
Missing attributes no longer trigger an :exc:`AttributeError`.
676672

677673
.. 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:

0 commit comments

Comments
 (0)