Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 90cd86d

Browse files
author
Anselm Kruis
committed
Merge branch main into main-slp
2 parents 02fbb59 + 1c263e3 commit 90cd86d

File tree

184 files changed

+2287
-705
lines changed

Some content is hidden

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

184 files changed

+2287
-705
lines changed

‎.github/CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Objects/dict* @methane
4444
Python/bootstrap_hash.c @python/crypto-team @tiran
4545

4646
# Email and related
47-
**/*mail* @python/email-team@maxking
47+
**/*mail* @python/email-team
4848
**/*smtp* @python/email-team
4949
**/*mime* @python/email-team
5050
**/*imap* @python/email-team

‎Doc/c-api/code.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ bound into a function.
4040
:c:func:`PyCode_New` directly can bind you to a precise Python
4141
version since the definition of the bytecode changes often.
4242
43+
.. versionchanged:: 3.8
44+
An extra parameter is required (*posonlyargcount*) to support :PEP:`570`.
45+
4346
.. audit-event:: code.__new__ "code filename name argcount kwonlyargcount nlocals stacksize flags"
4447
4548
.. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno)

‎Doc/library/asyncio-stream.rst‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ and work with streams:
6767

6868
The *ssl_handshake_timeout* parameter.
6969

70+
.. deprecated-removed:: 3.8 3.10
71+
72+
`open_connection()` is deprecated in favor of `connect()`.
73+
7074
.. coroutinefunction:: start_server(client_connected_cb, host=None, \
7175
port=None, \*, loop=None, limit=None, \
7276
family=socket.AF_UNSPEC, \
@@ -100,6 +104,10 @@ and work with streams:
100104

101105
The *ssl_handshake_timeout* and *start_serving* parameters.
102106

107+
.. deprecated-removed:: 3.8 3.10
108+
109+
`start_server()` is deprecated if favor of `StreamServer()`
110+
103111

104112
.. rubric:: Unix Sockets
105113

@@ -124,6 +132,10 @@ and work with streams:
124132

125133
The *path* parameter can now be a :term:`path-like object`
126134

135+
.. deprecated-removed:: 3.8 3.10
136+
137+
`open_unix_connection()` is deprecated if favor of `connect_unix()`.
138+
127139

128140
.. coroutinefunction:: start_unix_server(client_connected_cb, path=None, \
129141
\*, loop=None, limit=None, sock=None, \
@@ -146,6 +158,10 @@ and work with streams:
146158

147159
The *path* parameter can now be a :term:`path-like object`.
148160

161+
.. deprecated-removed:: 3.8 3.10
162+
163+
`start_unix_server()` is deprecated in favor of `UnixStreamServer()`.
164+
149165

150166
---------
151167

‎Doc/library/asyncio-task.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,12 @@ Task Object
842842
The *file* argument is an I/O stream to which the output
843843
is written; by default output is written to :data:`sys.stderr`.
844844

845+
.. method:: get_coro()
846+
847+
Return the coroutine object wrapped by the :class:`Task`.
848+
849+
.. versionadded:: 3.8
850+
845851
.. method:: get_name()
846852

847853
Return the name of the Task.

‎Doc/library/collections.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`,
3333
:class:`UserString` wrapper around string objects for easier string subclassing
3434
===================== ====================================================================
3535

36-
.. versionchanged:: 3.3
36+
.. deprecated-removed:: 3.3 3.9
3737
Moved :ref:`collections-abstract-base-classes` to the :mod:`collections.abc` module.
3838
For backwards compatibility, they continue to be visible in this module through
39-
Python 3.7. Subsequently, they will be removed entirely.
39+
Python 3.8.
4040

4141

4242
:class:`ChainMap` objects

‎Doc/library/email.encoders.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ This module is part of the legacy (``Compat32``) email API. In the
1212
new API the functionality is provided by the *cte* parameter of
1313
the :meth:`~email.message.EmailMessage.set_content` method.
1414

15+
This module is deprecated in Python 3. The functions provided here
16+
should not be called explicitly since the :class:`~email.mime.text.MIMEText`
17+
class sets the content type and CTE header using the *_subtype* and *_charset*
18+
values passed during the instaniation of that class.
19+
1520
The remaining text in this section is the original documentation of the module.
1621

1722
When creating :class:`~email.message.Message` objects from scratch, you often

‎Doc/library/fcntl.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ descriptor.
2828
Operations in this module used to raise an :exc:`IOError` where they now
2929
raise an :exc:`OSError`.
3030

31+
.. versionchanged:: 3.8
32+
The fcntl module now contains ``F_ADD_SEALS``, ``F_GET_SEALS``, and
33+
``F_SEAL_*`` constants for sealing of :func:`os.memfd_create` file
34+
descriptors.
3135

3236
The module defines the following functions:
3337

‎Doc/library/math.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Number-theoretic and representation functions
5050

5151
.. function:: factorial(x)
5252

53-
Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or
53+
Return *x* factorial as an integer. Raises :exc:`ValueError` if *x* is not integral or
5454
is negative.
5555

5656

‎Doc/library/os.rst‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,28 @@ as internal buffering of data.
707707
pass
708708

709709

710+
.. function:: copy_file_range(src, dst, count, offset_src=None, offset_dst=None)
711+
712+
Copy *count* bytes from file descriptor *src*, starting from offset
713+
*offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
714+
If *offset_src* is None, then *src* is read from the current position;
715+
respectively for *offset_dst*. The files pointed by *src* and *dst*
716+
must reside in the same filesystem, otherwise an :exc:`OSError` is
717+
raised with :attr:`~OSError.errno` set to :data:`errno.EXDEV`.
718+
719+
This copy is done without the additional cost of transferring data
720+
from the kernel to user space and then back into the kernel. Additionally,
721+
some filesystems could implement extra optimizations. The copy is done as if
722+
both files are opened as binary.
723+
724+
The return value is the amount of bytes copied. This could be less than the
725+
amount requested.
726+
727+
.. availability:: Linux kernel >= 4.5 or glibc >= 2.27.
728+
729+
.. versionadded:: 3.8
730+
731+
710732
.. function:: device_encoding(fd)
711733

712734
Return a string describing the encoding of the device associated with *fd*

‎Doc/library/ssl.rst‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ purposes.
139139
*cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load
140140
default CA certificates.
141141

142+
When :attr:`~SSLContext.keylog_filename` is supported and the environment
143+
variable :envvar:`SSLKEYLOGFILE` is set, :func:`create_default_context`
144+
enables key logging.
145+
142146
.. note::
143147
The protocol, options, cipher and other settings may change to more
144148
restrictive values anytime without prior deprecation. The values
@@ -172,6 +176,10 @@ purposes.
172176

173177
3DES was dropped from the default cipher string.
174178

179+
.. versionchanged:: 3.8
180+
181+
Support for key logging to :envvar:`SSLKEYLOGFILE` was added.
182+
175183

176184
Exceptions
177185
^^^^^^^^^^
@@ -1056,6 +1064,7 @@ Constants
10561064

10571065
SSL 3.0 to TLS 1.3.
10581066

1067+
10591068
SSL Sockets
10601069
-----------
10611070

@@ -1901,6 +1910,20 @@ to speed up repeated connections from the same clients.
19011910

19021911
This features requires OpenSSL 0.9.8f or newer.
19031912

1913+
.. attribute:: SSLContext.keylog_filename
1914+
1915+
Write TLS keys to a keylog file, whenever key material is generated or
1916+
received. The keylog file is designed for debugging purposes only. The
1917+
file format is specified by NSS and used by many traffic analyzers such
1918+
as Wireshark. The log file is opened in append-only mode. Writes are
1919+
synchronized between threads, but not between processes.
1920+
1921+
.. versionadded:: 3.8
1922+
1923+
.. note::
1924+
1925+
This features requires OpenSSL 1.1.1 or newer.
1926+
19041927
.. attribute:: SSLContext.maximum_version
19051928

19061929
A :class:`TLSVersion` enum member representing the highest supported

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /