Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 09e4ce5

Browse files
committed
Merge 3.5.3 release head with main 3.5 branch.
2 parents c620f20 + 8049052 commit 09e4ce5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+587
-374
lines changed

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ b4cbecbc0781e89a309d03b60a1f75f8499250e6 v3.4.3
148148
737efcadf5a678b184e0fa431aae11276bf06648 v3.4.4
149149
3631bb4a2490292ebf81d3e947ae36da145da564 v3.4.5rc1
150150
619b61e505d0e2ccc8516b366e4ddd1971b46a6f v3.4.5
151+
e199a272ccdac5a8c073d4690f60c13e0b6d86b0 v3.4.6rc1
151152
5d4b6a57d5fd7564bf73f3db0e46fe5eeb00bcd8 v3.5.0a1
152153
0337bd7ebcb6559d69679bc7025059ad1ce4f432 v3.5.0a2
153154
82656e28b5e5c4ae48d8dd8b5f0d7968908a82b6 v3.5.0a3

Doc/c-api/structures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ can be combined with a binding flag.
168168

169169
Methods with these flags must be of type :c:type:`PyCFunctionWithKeywords`.
170170
The function expects three parameters: *self*, *args*, and a dictionary of
171-
all the keyword arguments. The flag is typically combined with
171+
all the keyword arguments. The flag must be combined with
172172
:const:`METH_VARARGS`, and the parameters are typically processed using
173173
:c:func:`PyArg_ParseTupleAndKeywords`.
174174

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,8 +2165,8 @@ Speaking logging messages
21652165
-------------------------
21662166

21672167
There might be situations when it is desirable to have logging messages rendered
2168-
in an audible rather than a visible format. This is easy to do if you have text-
2169-
to-speech (TTS) functionality available in your system, even if it doesn't have
2168+
in an audible rather than a visible format. This is easy to do if you have
2169+
text-to-speech (TTS) functionality available in your system, even if it doesn't have
21702170
a Python binding. Most TTS systems have a command line program you can run, and
21712171
this can be invoked from a handler using :mod:`subprocess`. It's assumed here
21722172
that TTS command line programs won't expect to interact with users or take a

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ArgumentParser objects
174174
* conflict_handler_ - The strategy for resolving conflicting optionals
175175
(usually unnecessary)
176176

177-
* add_help_ - Add a -h/--help option to the parser (default: ``True``)
177+
* add_help_ - Add a ``-h/--help`` option to the parser (default: ``True``)
178178

179179
* allow_abbrev_ - Allows long options to be abbreviated if the
180180
abbreviation is unambiguous. (default: ``True``)
@@ -211,7 +211,7 @@ The help for this program will display ``myprogram.py`` as the program name
211211
-h, --help show this help message and exit
212212
--foo FOO foo help
213213
$ cd ..
214-
$ python subdir\myprogram.py --help
214+
$ python subdir/myprogram.py --help
215215
usage: myprogram.py [-h] [--foo FOO]
216216
217217
optional arguments:

Doc/library/logging.config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ in :mod:`logging` itself) and defining handlers which are declared either in
105105
:param disable_existing_loggers: If specified as ``False``, loggers which
106106
exist when this call is made are left
107107
enabled. The default is ``True`` because this
108-
enables old behaviour in a backward-
109-
compatible way. This behaviour is to
108+
enables old behaviour in a
109+
backward-compatible way. This behaviour is to
110110
disable any existing loggers unless they or
111111
their ancestors are explicitly named in the
112112
logging configuration.

Doc/library/logging.handlers.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ possible, while any potentially slow operations (such as sending an email via
900900
.. class:: QueueHandler(queue)
901901

902902
Returns a new instance of the :class:`QueueHandler` class. The instance is
903-
initialized with the queue to send messages to. The queue can be any queue-
904-
like object; it's used as-is by the :meth:`enqueue` method, which needs
903+
initialized with the queue to send messages to. The queue can be any
904+
queue-like object; it's used as-is by the :meth:`enqueue` method, which needs
905905
to know how to send messages to it.
906906

907907

@@ -956,8 +956,8 @@ possible, while any potentially slow operations (such as sending an email via
956956

957957
Returns a new instance of the :class:`QueueListener` class. The instance is
958958
initialized with the queue to send messages to and a list of handlers which
959-
will handle entries placed on the queue. The queue can be any queue-
960-
like object; it's passed as-is to the :meth:`dequeue` method, which needs
959+
will handle entries placed on the queue. The queue can be any queue-like
960+
object; it's passed as-is to the :meth:`dequeue` method, which needs
961961
to know how to get messages from it. If ``respect_handler_level`` is ``True``,
962962
a handler's level is respected (compared with the level for the message) when
963963
deciding whether to pass messages to that handler; otherwise, the behaviour

Doc/library/quopri.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ sending a graphics file.
3232

3333
.. function:: encode(input, output, quotetabs, header=False)
3434

35-
Encode the contents of the *input* file and write the resulting quoted-
36-
printable data to the *output* file. *input* and *output* must be
35+
Encode the contents of the *input* file and write the resulting quoted-printable
36+
data to the *output* file. *input* and *output* must be
3737
:term:`binary file objects <file object>`. *quotetabs*, a flag which controls
3838
whether to encode embedded spaces and tabs must be provideda and when true it
3939
encodes such embedded whitespace, and when false it leaves them unencoded.

Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ to sockets.
12881288
to transmit as opposed to sending the file until EOF is reached. File
12891289
position is updated on return or also in case of error in which case
12901290
:meth:`file.tell() <io.IOBase.tell>` can be used to figure out the number of
1291-
bytes which were sent. The socket must be of :const:`SOCK_STREAM` type. Non-
1292-
blocking sockets are not supported.
1291+
bytes which were sent. The socket must be of :const:`SOCK_STREAM` type.
1292+
Non-blocking sockets are not supported.
12931293

12941294
.. versionadded:: 3.5
12951295

Doc/library/typing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ The module defines the following classes, functions and decorators:
557557
As a shorthand for this type, :class:`bytes` can be used to
558558
annotate arguments of any of the types mentioned above.
559559

560+
.. class:: Deque(deque, MutableSequence[T])
561+
562+
A generic version of :class:`collections.deque`.
563+
560564
.. class:: List(list, MutableSequence[T])
561565

562566
Generic version of :class:`list`.

Doc/library/unittest.mock.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,9 @@ sentinel
17951795
the same attribute will always return the same object. The objects
17961796
returned have a sensible repr so that test failure messages are readable.
17971797

1798+
The ``sentinel`` attributes don't preserve their identity when they are
1799+
:mod:`copied <copy>` or :mod:`pickled <pickle>`.
1800+
17981801
Sometimes when testing you need to test that a specific object is passed as an
17991802
argument to another method, or returned. It can be common to create named
18001803
sentinel objects to test this. :data:`sentinel` provides a convenient way of

0 commit comments

Comments
 (0)