Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/c-api/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ the module initialisation function. The macro puts a pointer to a C structure
into a static variable, :c:data:`PyDateTimeAPI`, that is used by the following
macros.

.. c:macro:: PyDateTime_IMPORT()
.. c:macro:: PyDateTime_IMPORT
Import the datetime C API.

Expand Down Expand Up @@ -51,7 +51,7 @@ macros.
.. versionchanged:: 3.15

This variable should not be accessed directly as direct access is not thread-safe.
Use :c:func:`PyDateTime_IMPORT` instead.
Use :c:macro:`PyDateTime_IMPORT` instead.

.. c:type:: PyDateTime_Date
Expand Down
2 changes: 1 addition & 1 deletion Doc/c-api/function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ There are a few functions specific to Python functions.
.. versionadded:: 3.12
- ``PyFunction_PYFUNC_EVENT_MODIFY_QUALNAME``
- ``PyFunction_EVENT_MODIFY_QUALNAME``
.. versionadded:: 3.15
Expand Down
2 changes: 1 addition & 1 deletion Doc/howto/mro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ straightforward to compute the linearizations of O, X, Y, A and B:

.. code-block:: text
L[O] = 0
L[O] = O
L[X] = X O
L[Y] = Y O
L[A] = A X Y O
Expand Down
8 changes: 4 additions & 4 deletions Doc/library/email.generator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To accommodate reproducible processing of SMIME-signed messages

If *maxheaderlen* is not ``None``, refold any header lines that are longer
than *maxheaderlen*, or if ``0``, do not rewrap any headers. If
*manheaderlen* is ``None`` (the default), wrap headers and other message
*maxheaderlen* is ``None`` (the default), wrap headers and other message
lines according to the *policy* settings.

If *policy* is specified, use that policy to control message generation. If
Expand Down Expand Up @@ -137,7 +137,7 @@ a serialized binary representation of a message object. For more detail, see
Because strings cannot represent binary data, the :class:`Generator` class must
convert any binary data in any message it flattens to an ASCII compatible
format, by converting them to an ASCII compatible
:mailheader:`Content-Transfer_Encoding`. Using the terminology of the email
:mailheader:`Content-Transfer-Encoding`. Using the terminology of the email
RFCs, you can think of this as :class:`Generator` serializing to an I/O stream
that is not "8 bit clean". In other words, most applications will want
to be using :class:`BytesGenerator`, and not :class:`Generator`.
Expand All @@ -162,7 +162,7 @@ to be using :class:`BytesGenerator`, and not :class:`Generator`.

If *maxheaderlen* is not ``None``, refold any header lines that are longer
than *maxheaderlen*, or if ``0``, do not rewrap any headers. If
*manheaderlen* is ``None`` (the default), wrap headers and other message
*maxheaderlen* is ``None`` (the default), wrap headers and other message
lines according to the *policy* settings.

If *policy* is specified, use that policy to control message generation. If
Expand Down Expand Up @@ -267,7 +267,7 @@ in with information about the part.

"[Non-text (%(type)s) part of message omitted, filename %(filename)s]"

Optional *_mangle_from_* and *maxheaderlen* are as with the
Optional *mangle_from_* and *maxheaderlen* are as with the
:class:`Generator` base class.


Expand Down
2 changes: 1 addition & 1 deletion Doc/library/email.message.rst
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ message objects.
.. method:: make_mixed(boundary=None)

Convert a non-``multipart``, a ``multipart/related``, or a
``multipart-alternative`` into a ``multipart/mixed``, moving any existing
``multipart/alternative`` into a ``multipart/mixed``, moving any existing
:mailheader:`Content-` headers and payload into a (new) first part of the
``multipart``. If *boundary* is specified, use it as the boundary string
in the multipart, otherwise leave the boundary to be automatically
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/email.policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ added matters. To illustrate::
If :attr:`~Policy.cte_type` is ``8bit``, non-ASCII binary data is
converted back
into bytes. Headers with binary data are not refolded, regardless of the
``refold_header`` setting, since there is no way to know whether the
``refold_source`` setting, since there is no way to know whether the
binary data consists of single byte characters or multibyte characters.


Expand Down
2 changes: 1 addition & 1 deletion Doc/library/mailbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
.. method:: set_info(key, info)

Set the info of the message corresponding to *key* to *info*.
Calling ``some_mailbox.set_info(key, flags)`` is similar to ::
Calling ``some_mailbox.set_info(key, info)`` is similar to ::

one_message = some_mailbox.get_message(key)
one_message.set_info(info)
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,26 +563,26 @@
| Constant | Meaning |
+===========================+=============================================+
| :const:`KQ_FILTER_READ` | Takes a descriptor and returns whenever |
| | there is data available to read. |

Check warning on line 566 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_READ [ref.const]
+---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_WRITE` | Takes a descriptor and returns whenever |
| | there is data available to write. |

Check warning on line 569 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_WRITE [ref.const]
+---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_AIO` | AIO requests. |
+---------------------------+---------------------------------------------+

Check warning on line 572 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_AIO [ref.const]
| :const:`KQ_FILTER_VNODE` | Returns when one or more of the requested |
| | events watched in *fflag* occurs. |
| | events watched in *fflags* occurs. |

Check warning on line 574 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_VNODE [ref.const]
+---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_PROC` | Watch for events on a process ID. |
+---------------------------+---------------------------------------------+

Check warning on line 577 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_PROC [ref.const]
| :const:`KQ_FILTER_NETDEV` | Watch for events on a network device |
| | (not available on macOS). |

Check warning on line 579 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_NETDEV [ref.const]
+---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_SIGNAL` | Returns whenever the watched signal is |
| | delivered to the process. |

Check warning on line 582 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_SIGNAL [ref.const]
+---------------------------+---------------------------------------------+
| :const:`KQ_FILTER_TIMER` | Establishes an arbitrary timer. |
+---------------------------+---------------------------------------------+

Check warning on line 585 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: KQ_FILTER_TIMER [ref.const]

.. attribute:: kevent.flags

Expand Down
8 changes: 4 additions & 4 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ Deprecated
:meth:`~importlib.abc.Loader.exec_module` instead.
(Contributed by Brett Cannon in :issue:`26131`.)

* :meth:`!zimport.zipimporter.load_module` has been deprecated in
* :meth:`!zipimport.zipimporter.load_module` has been deprecated in
preference for :meth:`~zipimport.zipimporter.exec_module`.
(Contributed by Brett Cannon in :issue:`26131`.)

Expand Down Expand Up @@ -1711,8 +1711,8 @@ Deprecated
(Contributed by Brett Cannon in :issue:`42137`.)

* :meth:`!importlib.abc.Loader.module_repr`,
:meth:`!importlib.machinery.FrozenLoader.module_repr`, and
:meth:`!importlib.machinery.BuiltinLoader.module_repr` are deprecated and
:meth:`!importlib.machinery.FrozenImporter.module_repr`, and
:meth:`!importlib.machinery.BuiltinImporter.module_repr` are deprecated and

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref 1899087

slated for removal in Python 3.12.
(Contributed by Brett Cannon in :issue:`42136`.)

Expand Down Expand Up @@ -1742,7 +1742,7 @@ Deprecated

* ``threading.Thread.setName`` => :attr:`threading.Thread.name`

* ``threading.thread.getName`` => :attr:`threading.Thread.name`
* ``threading.Thread.getName`` => :attr:`threading.Thread.name`

* ``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon`

Expand Down
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1904,11 +1904,11 @@ C APIs pending removal are
* :meth:`!importlib.abc.PathEntryFinder.find_loader`
* :meth:`!importlib.abc.PathEntryFinder.find_module`
* :meth:`!importlib.machinery.BuiltinImporter.find_module`
* :meth:`!importlib.machinery.BuiltinLoader.module_repr`
* :meth:`!importlib.machinery.BuiltinImporter.module_repr`
* :meth:`!importlib.machinery.FileFinder.find_loader`
* :meth:`!importlib.machinery.FileFinder.find_module`
* :meth:`!importlib.machinery.FrozenImporter.find_module`
* :meth:`!importlib.machinery.FrozenLoader.module_repr`
* :meth:`!importlib.machinery.FrozenImporter.module_repr`
* :meth:`!importlib.machinery.PathFinder.find_module`
* :meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
* :func:`!importlib.util.module_for_loader`
Expand Down
2 changes: 1 addition & 1 deletion Lib/email/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def fold_binary(self, name, value):

If cte_type is 8bit, non-ASCII binary data is converted back into
bytes. Headers with binary data are not refolded, regardless of the
refold_header setting, since there is no way to know whether the binary
refold_source setting, since there is no way to know whether the binary
data consists of single byte characters or multibyte characters.

If utf8 is true, headers are encoded to utf8, otherwise to ascii with
Expand Down
4 changes: 2 additions & 2 deletions Misc/NEWS.d/3.15.0a1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5914,8 +5914,8 @@ Exception text when trying to delete attributes of types was clarified.
.. nonce: ALByCb
.. section: C API

Function watchers can now receive a PyFunction_PYFUNC_EVENT_MODIFY_QUALNAME
event when a watched functions qualname is changed.
Function watchers can now receive a PyFunction_EVENT_MODIFY_QUALNAME
event when a watched function's qualname is changed.

..

Expand Down
Loading