Skip to content

Commit b319e64

Browse files
authored
Merge branch 'main' into gh-148211/decompose-shuffle-3
2 parents 5fa6b83 + d206d42 commit b319e64

31 files changed

+477
-196
lines changed

Doc/c-api/buffer.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ readonly, format
258258

259259
.. c:macro:: PyBUF_WRITEABLE
260260
261-
This is a :term:`soft deprecated` alias to :c:macro:`PyBUF_WRITABLE`.
261+
This is an alias to :c:macro:`PyBUF_WRITABLE`.
262+
263+
.. soft-deprecated:: 3.13
262264

263265
.. c:macro:: PyBUF_FORMAT
264266

Doc/c-api/code.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,16 @@ bound into a function.
212212
213213
.. c:function:: PyObject *PyCode_Optimize(PyObject *code, PyObject *consts, PyObject *names, PyObject *lnotab_obj)
214214
215-
This is a :term:`soft deprecated` function that does nothing.
215+
This is a function that does nothing.
216216
217217
Prior to Python 3.10, this function would perform basic optimizations to a
218218
code object.
219219
220220
.. versionchanged:: 3.10
221221
This function now does nothing.
222222
223+
.. soft-deprecated:: 3.13
224+
223225
224226
.. _c_codeobject_flags:
225227

Doc/c-api/descriptor.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,16 @@ found in the dictionary of type objects.
140140
141141
.. c:macro:: PyDescr_COMMON
142142
143-
This is a :term:`soft deprecated` macro including the common fields for a
143+
This is a macro including the common fields for a
144144
descriptor object.
145145
146146
This was included in Python's C API by mistake; do not use it in extensions.
147147
For creating custom descriptor objects, create a class implementing the
148148
descriptor protocol (:c:member:`~PyTypeObject.tp_descr_get` and
149149
:c:member:`~PyTypeObject.tp_descr_set`).
150150
151+
.. soft-deprecated:: 3.15
152+
151153
152154
Built-in descriptors
153155
^^^^^^^^^^^^^^^^^^^^

Doc/c-api/exceptions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,14 +818,16 @@ Exception Classes
818818
819819
.. c:macro:: PyException_HEAD
820820
821-
This is a :term:`soft deprecated` macro including the base fields for an
821+
This is a macro including the base fields for an
822822
exception object.
823823
824824
This was included in Python's C API by mistake and is not designed for use
825825
in extensions. For creating custom exception objects, use
826826
:c:func:`PyErr_NewException` or otherwise create a class inheriting from
827827
:c:data:`PyExc_BaseException`.
828828
829+
.. soft-deprecated:: 3.15
830+
829831
830832
Exception Objects
831833
=================

Doc/c-api/gen.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ Deprecated API
9090
9191
.. c:macro:: PyAsyncGenASend_CheckExact(op)
9292
93-
This is a :term:`soft deprecated` API that was included in Python's C API
93+
This is an API that was included in Python's C API
9494
by mistake.
9595
9696
It is solely here for completeness; do not use this API.
97+
98+
.. soft-deprecated:: 3.14

Doc/c-api/intro.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ have been standardized in C11 (or previous standards).
587587
588588
.. c:macro:: Py_MEMCPY(dest, src, n)
589589
590-
This is a :term:`soft deprecated` alias to :c:func:`!memcpy`.
591-
Use :c:func:`!memcpy` directly instead.
590+
This is an alias to :c:func:`!memcpy`.
592591
593592
.. soft-deprecated:: 3.14
593+
Use :c:func:`!memcpy` directly instead.
594594
595595
.. c:macro:: Py_UNICODE_SIZE
596596
@@ -611,8 +611,7 @@ have been standardized in C11 (or previous standards).
611611
612612
.. c:macro:: Py_VA_COPY
613613
614-
This is a :term:`soft deprecated` alias to the C99-standard ``va_copy``
615-
function.
614+
This is an alias to the C99-standard ``va_copy`` function.
616615
617616
Historically, this would use a compiler-specific method to copy a ``va_list``.
618617

Doc/c-api/set.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Deprecated API
201201
202202
.. c:macro:: PySet_MINSIZE
203203
204-
A :term:`soft deprecated` constant representing the size of an internal
204+
A constant representing the size of an internal
205205
preallocated table inside :c:type:`PySetObject` instances.
206206
207207
This is documented solely for completeness, as there are no guarantees
@@ -211,3 +211,5 @@ Deprecated API
211211
:c:macro:`!PySet_MINSIZE` can be replaced with a small constant like ``8``.
212212
213213
If looking for the size of a set, use :c:func:`PySet_Size` instead.
214+
215+
.. soft-deprecated:: 3.14

Doc/c-api/typeobj.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
13911391

13921392
.. versionchanged:: 3.9
13931393

1394-
Renamed to the current name, without the leading underscore.
1395-
The old provisional name is :term:`soft deprecated`.
1394+
Renamed to the current name, without the leading underscore.
1395+
The old provisional name is :term:`soft deprecated`.
13961396

13971397
.. versionchanged:: 3.12
13981398

@@ -1501,11 +1501,13 @@ and :c:data:`PyType_Type` effectively act as defaults.)
15011501

15021502
.. c:macro:: Py_TPFLAGS_HAVE_VERSION_TAG
15031503
1504-
This is a :term:`soft deprecated` macro that does nothing.
1504+
This macro does nothing.
15051505
Historically, this would indicate that the
15061506
:c:member:`~PyTypeObject.tp_version_tag` field was available and
15071507
initialized.
15081508

1509+
.. soft-deprecated:: 3.13
1510+
15091511

15101512
.. c:macro:: Py_TPFLAGS_INLINE_VALUES
15111513

Doc/library/asyncio-dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ generator can occur in an unexpected order::
304304
try:
305305
yield 2
306306
finally:
307-
await asyncio.sleep(0.1) # immitate some async work
307+
await asyncio.sleep(0.1) # imitate some async work
308308
work_done = True
309309

310310

Doc/library/calendar.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
5454

5555
.. method:: setfirstweekday(firstweekday)
5656

57-
Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6)
57+
Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6).
5858

5959
Identical to setting the :attr:`~Calendar.firstweekday` property.
6060

6161
.. method:: iterweekdays()
6262

63-
Return an iterator for the week day numbers that will be used for one
63+
Return an iterator for the weekday numbers that will be used for one
6464
week. The first value from the iterator will be the same as the value of
6565
the :attr:`~Calendar.firstweekday` property.
6666

@@ -86,7 +86,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
8686
Return an iterator for the month *month* in the year *year* similar to
8787
:meth:`itermonthdates`, but not restricted by the :class:`datetime.date`
8888
range. Days returned will be tuples consisting of a day of the month
89-
number and a week day number.
89+
number and a weekday number.
9090

9191

9292
.. method:: itermonthdays3(year, month)
@@ -408,7 +408,7 @@ For simple text calendars this module provides the following functions.
408408

409409
.. function:: monthrange(year, month)
410410

411-
Returns weekday of first day of the month and number of days in month, for the
411+
Returns weekday of first day of the month and number of days in month, for the
412412
specified *year* and *month*.
413413

414414

@@ -446,7 +446,7 @@ For simple text calendars this module provides the following functions.
446446
An unrelated but handy function that takes a time tuple such as returned by
447447
the :func:`~time.gmtime` function in the :mod:`time` module, and returns the
448448
corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX
449-
encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each others'
449+
encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each other's
450450
inverse.
451451

452452

0 commit comments

Comments
 (0)