mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Python 3.15.0a1
This commit is contained in:
parent
f71c96cf2d
commit
aeff92d86a
669 changed files with 8387 additions and 2073 deletions
|
|
@ -127,7 +127,7 @@ This module defines the following constants and functions:
|
|||
.. versionchanged:: 3.13
|
||||
Added support for GNU/kFreeBSD.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added support for Solaris.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2507,7 +2507,7 @@ and classes for traversing abstract syntax trees:
|
|||
.. versionchanged:: 3.13
|
||||
Added the *show_empty* option.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Omit optional ``Load()`` values by default.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ The :mod:`calendar` module exports the following data attributes:
|
|||
in the standalone form if the locale provides one. Else it is equivalent
|
||||
to :data:`month_name`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. data:: standalone_month_abbr
|
||||
|
|
@ -542,7 +542,7 @@ The :mod:`calendar` module exports the following data attributes:
|
|||
locale in the standalone form if the locale provides one. Else it is
|
||||
equivalent to :data:`month_abbr`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. data:: JANUARY
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ The full details for each codec can also be looked up directly:
|
|||
.. versionchanged:: 3.9
|
||||
Any characters except ASCII letters and digits and a dot are converted to underscore.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
No characters are converted to underscore anymore.
|
||||
Spaces are converted to hyphens.
|
||||
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ or subtracting from an empty counter.
|
|||
.. versionadded:: 3.3
|
||||
Added support for unary plus, unary minus, and in-place multiset operations.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
Added support for the symmetric difference multiset operation, ``c ^ d``.
|
||||
|
||||
.. note::
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ Other constructors, all class methods:
|
|||
:c:func:`localtime` function. Raise :exc:`OSError` instead of
|
||||
:exc:`ValueError` on :c:func:`localtime` failure.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timestamp*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -1023,7 +1023,7 @@ Other constructors, all class methods:
|
|||
.. versionchanged:: 3.6
|
||||
:meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timestamp*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -1067,7 +1067,7 @@ Other constructors, all class methods:
|
|||
|
||||
Use :meth:`datetime.fromtimestamp` with :const:`UTC` instead.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timestamp*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -2641,7 +2641,7 @@ differences between platforms in handling of unsupported format specifiers.
|
|||
.. versionadded:: 3.12
|
||||
``%:z`` was added for :meth:`~.datetime.strftime`
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
``%:z`` was added for :meth:`~.datetime.strptime`
|
||||
|
||||
Technical Detail
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ or any other SQLite browser, including the SQLite CLI.
|
|||
While reorganizing, as much as two times the size of the original database is required
|
||||
in free disk space. However, be aware that this factor changes for each :mod:`dbm` submodule.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
:mod:`dbm.gnu` --- GNU database manager
|
||||
|
|
@ -519,7 +519,7 @@ The :mod:`!dbm.dumb` module defines the following:
|
|||
While reorganizing, no additional free disk space is required. However, be aware
|
||||
that this factor changes for each :mod:`dbm` submodule.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: dumbdbm.sync()
|
||||
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
|
|||
|
||||
See :ref:`difflib-interface` for a more detailed example.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added the *color* parameter.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1123,7 +1123,7 @@ from text files and modules with doctests:
|
|||
The global ``__file__`` is added to the globals provided to doctests loaded
|
||||
from a text file using :func:`DocFileSuite`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Run each example as a :ref:`subtest <subtests>`.
|
||||
|
||||
|
||||
|
|
@ -1164,7 +1164,7 @@ from text files and modules with doctests:
|
|||
:func:`DocTestSuite` returns an empty :class:`unittest.TestSuite` if *module*
|
||||
contains no docstrings instead of raising :exc:`ValueError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Run each example as a :ref:`subtest <subtests>`.
|
||||
|
||||
Under the covers, :func:`DocTestSuite` creates a :class:`unittest.TestSuite` out
|
||||
|
|
@ -1564,7 +1564,7 @@ DocTestRunner objects
|
|||
containing *example*. *out* is the output function that was passed to
|
||||
:meth:`DocTestRunner.run`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. method:: report_start(out, test, example)
|
||||
|
|
|
|||
|
|
@ -450,7 +450,7 @@ The following exceptions are the exceptions that are usually raised.
|
|||
|
||||
:meth:`threading.Thread.join` can now raise this exception.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
|
||||
This exception may be raised when acquiring :meth:`threading.Lock`
|
||||
or :meth:`threading.RLock`.
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ The module defines the following functions:
|
|||
Add support of arbitrary :term:`bytes-like objects <bytes-like object>`,
|
||||
not only :class:`bytes`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The size of bytes-like objects is no longer limited to 1024 bytes.
|
||||
|
||||
|
||||
|
|
@ -187,7 +187,7 @@ The module defines the following functions:
|
|||
The GIL is always released during a system call.
|
||||
System calls failing with EINTR are automatically retried.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The size of not mutated bytes-like objects is no longer
|
||||
limited to 1024 bytes.
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ The module defines the following items:
|
|||
.. versionchanged:: 3.6
|
||||
Accepts a :term:`path-like object`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The default compression level was reduced to 6 (down from 9).
|
||||
It is the default level used by most compression tools and a better
|
||||
tradeoff between speed and performance.
|
||||
|
|
@ -186,7 +186,7 @@ The module defines the following items:
|
|||
Remove the ``filename`` attribute, use the :attr:`~GzipFile.name`
|
||||
attribute instead.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The default compression level was reduced to 6 (down from 9).
|
||||
It is the default level used by most compression tools and a better
|
||||
tradeoff between speed and performance.
|
||||
|
|
@ -216,7 +216,7 @@ The module defines the following items:
|
|||
The *mtime* parameter now defaults to 0 for reproducible output.
|
||||
For the previous behaviour of using the current time,
|
||||
pass ``None`` to *mtime*.
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The default compression level was reduced to 6 (down from 9).
|
||||
It is the default level used by most compression tools and a better
|
||||
tradeoff between speed and performance.
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ The module provides the following classes:
|
|||
.. versionchanged:: 3.7
|
||||
*blocksize* parameter was added.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
*max_response_headers* parameter was added.
|
||||
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ The module provides the following classes:
|
|||
The deprecated *key_file*, *cert_file* and *check_hostname* parameters
|
||||
have been removed.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
*max_response_headers* parameter was added.
|
||||
|
||||
|
||||
|
|
@ -429,7 +429,7 @@ HTTPConnection Objects
|
|||
The maximum number of allowed response headers to help prevent denial-of-service
|
||||
attacks. By default, the maximum number of allowed headers is set to 100.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
As an alternative to using the :meth:`~HTTPConnection.request` method described above, you can
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ in a cookie name (as :attr:`~Morsel.key`).
|
|||
.. versionchanged:: 3.3
|
||||
Allowed '``:``' as a valid cookie name character.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Allowed '``"``' as a valid cookie value character.
|
||||
|
||||
.. note::
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ An :class:`IMAP4` instance has the following methods:
|
|||
the password. Will only work if the server ``CAPABILITY`` response includes the
|
||||
phrase ``AUTH=CRAM-MD5``.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
An :exc:`IMAP4.error` is raised if MD5 support is not available.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ The :mod:`locale` module defines the following exception and functions:
|
|||
specified in the :envvar:`LANG` environment variable). If the locale is not
|
||||
changed thereafter, using multithreading should not cause problems.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Support language codes with ``@``-modifiers.
|
||||
|
||||
|
||||
|
|
@ -374,7 +374,7 @@ The :mod:`locale` module defines the following exception and functions:
|
|||
determined.
|
||||
The "C" locale is represented as ``(None, None)``.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
``@``-modifier are no longer silently removed, but included in
|
||||
the language code.
|
||||
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ Floating point arithmetic
|
|||
is, :func:`!fmax` is not required to be sensitive to the sign of such
|
||||
operands (see Annex F of the C11 standard, §F.10.0.3 and §F.10.9.2).
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: fmin(x, y)
|
||||
|
|
@ -271,7 +271,7 @@ Floating point arithmetic
|
|||
is, :func:`!fmin` is not required to be sensitive to the sign of such
|
||||
operands (see Annex F of the C11 standard, §F.10.0.3 and §F.10.9.3).
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: fmod(x, y)
|
||||
|
|
@ -408,7 +408,7 @@ Floating point manipulation functions
|
|||
nonzero number that is not a subnormal (see :func:`issubnormal`).
|
||||
Return ``False`` otherwise.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: issubnormal(x)
|
||||
|
|
@ -417,7 +417,7 @@ Floating point manipulation functions
|
|||
nonzero number with a magnitude smaller than :data:`sys.float_info.min`.
|
||||
Return ``False`` otherwise.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: isinf(x)
|
||||
|
|
@ -464,7 +464,7 @@ Floating point manipulation functions
|
|||
|
||||
This is useful to detect the sign bit of zeroes, infinities and NaNs.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: ulp(x)
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
|
|||
This mode is useful to limit the number of open file handles.
|
||||
The original file can be renamed (but not deleted) after closing *fileno*.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The *trackfd* parameter was added.
|
||||
|
||||
.. audit-event:: mmap.__new__ fileno,length,access,offset mmap.mmap
|
||||
|
|
@ -229,7 +229,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
|
|||
on error under Windows. A zero value was returned on success; an
|
||||
exception was raised on error under Unix.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Allow specifying *offset* without *size*. Previously, both *offset*
|
||||
and *size* parameters were required together. Now *offset* can be
|
||||
specified alone, and the flush operation will extend from *offset*
|
||||
|
|
@ -334,7 +334,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
|
|||
memory-mapped area.
|
||||
For an anonymous mapping, return its size.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Anonymous mappings are now supported on Unix.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ the :mod:`glob` module.)
|
|||
.. versionchanged:: 3.10
|
||||
The *strict* parameter was added.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The :data:`ALL_BUT_LAST` and :data:`ALLOW_MISSING` values for
|
||||
the *strict* parameter was added.
|
||||
|
||||
|
|
@ -457,13 +457,13 @@ the :mod:`glob` module.)
|
|||
|
||||
Special value used for the *strict* argument in :func:`realpath`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. data:: ALLOW_MISSING
|
||||
|
||||
Special value used for the *strict* argument in :func:`realpath`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: relpath(path, start=os.curdir)
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ Python UTF-8 Mode
|
|||
.. versionadded:: 3.7
|
||||
See :pep:`540` for more details.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
|
||||
Python UTF-8 mode is now enabled by default (:pep:`686`).
|
||||
It may be disabled with by setting :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` as
|
||||
|
|
@ -1553,7 +1553,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
|
|||
|
||||
.. availability:: Linux >= 6.14
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: ptsname(fd, /)
|
||||
|
|
@ -2645,7 +2645,7 @@ features:
|
|||
|
||||
Non-existent device.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: pathconf(path, name)
|
||||
|
|
@ -3646,7 +3646,7 @@ features:
|
|||
.. versionchanged:: 3.6
|
||||
Accepts a :term:`path-like object`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real numbers as *times*, not only integers or floats.
|
||||
|
||||
|
||||
|
|
@ -4610,7 +4610,7 @@ written in Python, such as a mail server's external command delivery program.
|
|||
threads, this now raises a :exc:`DeprecationWarning`. See the
|
||||
longer explanation on :func:`os.fork`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The returned file descriptor is now made non-inheritable.
|
||||
|
||||
.. availability:: Unix, not WASI, not Android, not iOS.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ The :mod:`pty` module defines the following functions:
|
|||
.. warning:: On macOS the use of this function is unsafe when mixed with using
|
||||
higher-level system APIs, and that includes using :mod:`urllib.request`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The returned file descriptor is now made non-inheritable.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ against some common XML vulnerabilities.
|
|||
Activation thresholds below 4 MiB are known to break support for DITA 1.3
|
||||
payload and are hence not recommended.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: xmlparser.SetBillionLaughsAttackProtectionMaximumAmplification(max_factor, /)
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ against some common XML vulnerabilities.
|
|||
that can be adjusted by :meth:`.SetBillionLaughsAttackProtectionActivationThreshold`
|
||||
is exceeded.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: xmlparser.SetAllocTrackerActivationThreshold(threshold, /)
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ against some common XML vulnerabilities.
|
|||
Check for availability using :func:`hasattr` if used in code running
|
||||
across a variety of Python versions.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: xmlparser.SetAllocTrackerMaximumAmplification(max_factor, /)
|
||||
|
||||
|
|
@ -360,7 +360,7 @@ against some common XML vulnerabilities.
|
|||
that can be adjusted by :meth:`.SetAllocTrackerActivationThreshold`
|
||||
is exceeded.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
:class:`xmlparser` objects have the following attributes:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ this module for those platforms.
|
|||
|
||||
Constant used to represent the limit for an unlimited resource.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
It is now always positive.
|
||||
Previously, it could be negative, such as -1 or -3.
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ this module for those platforms.
|
|||
cannot be represented in the ``rlim_t`` value in C.
|
||||
Can be equal to :data:`RLIM_INFINITY`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: getrlimit(resource)
|
||||
|
|
@ -296,7 +296,7 @@ platform.
|
|||
|
||||
.. availability:: NetBSD >= 7.0.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. data:: RLIMIT_PIPEBUF
|
||||
|
|
@ -306,7 +306,7 @@ platform.
|
|||
|
||||
.. availability:: FreeBSD >= 14.2.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. data:: RLIMIT_THREADS
|
||||
|
|
@ -315,7 +315,7 @@ platform.
|
|||
|
||||
.. availability:: AIX.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. data:: RLIMIT_UMTXP
|
||||
|
|
@ -325,7 +325,7 @@ platform.
|
|||
|
||||
.. availability:: FreeBSD >= 11.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
Resource Usage
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ The module defines the following:
|
|||
:pep:`475` for the rationale), instead of raising
|
||||
:exc:`InterruptedError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ object.
|
|||
:pep:`475` for the rationale), instead of raising
|
||||
:exc:`InterruptedError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -385,7 +385,7 @@ Edge and Level Trigger Polling (epoll) Objects
|
|||
:pep:`475` for the rationale), instead of raising
|
||||
:exc:`InterruptedError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -476,7 +476,7 @@ linearly scanned again. :c:func:`!select` is *O*\ (*highest file descriptor*), w
|
|||
:pep:`475` for the rationale), instead of raising
|
||||
:exc:`InterruptedError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -520,7 +520,7 @@ Kqueue Objects
|
|||
:pep:`475` for the rationale), instead of raising
|
||||
:exc:`InterruptedError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ lots of shared sub-objects. The keys are ordinary strings.
|
|||
.. versionchanged:: 3.11
|
||||
Accepts :term:`path-like object` for filename.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts custom *serializer* and *deserializer* functions in place of
|
||||
:func:`pickle.dumps` and :func:`pickle.loads`.
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ Two additional methods are supported:
|
|||
Calls :meth:`sync` and attempts to shrink space used on disk by removing empty
|
||||
space resulting from deletions.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: Shelf.close()
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ Restrictions
|
|||
:const:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
|
||||
protocol.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added the *serializer* and *deserializer* parameters.
|
||||
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ Restrictions
|
|||
optional *protocol*, *writeback*, *keyencoding*, *serializer* and *deserializer*
|
||||
parameters have the same interpretation as in :func:`~shelve.open`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added the *serializer* and *deserializer* parameters.
|
||||
|
||||
|
||||
|
|
@ -220,7 +220,7 @@ Restrictions
|
|||
and *deserializer* parameters have the same interpretation as in
|
||||
:func:`~shelve.open`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added the *serializer* and *deserializer* parameters.
|
||||
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ Exceptions
|
|||
|
||||
The *deserializer* and *serializer* arguments must be given together.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@ The :mod:`signal` module defines the following functions:
|
|||
|
||||
.. availability:: Unix.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real numbers as *seconds* and *interval*, not only integers
|
||||
or floats.
|
||||
|
||||
|
|
@ -702,7 +702,7 @@ The :mod:`signal` module defines the following functions:
|
|||
by a signal not in *sigset* and the signal handler does not raise an
|
||||
exception (see :pep:`475` for the rationale).
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1412,7 +1412,7 @@ The :mod:`socket` module also offers various network-related services:
|
|||
:meth:`~socket.settimeout` for possible values and their respective
|
||||
meanings.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -2088,7 +2088,7 @@ to sockets.
|
|||
The method no longer toggles :const:`SOCK_NONBLOCK` flag on
|
||||
:attr:`socket.type`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ There are four basic concrete server classes:
|
|||
:meth:`~BaseServer.server_activate`. The other parameters are passed to
|
||||
the :class:`BaseServer` base class.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The default queue size is now ``socket.SOMAXCONN`` for :class:`socketserver.TCPServer`.
|
||||
|
||||
.. class:: UDPServer(server_address, RequestHandlerClass, bind_and_activate=True)
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ Module constants
|
|||
This constant is only available if Python was compiled with SQLite
|
||||
3.24.0 or greater.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. data:: threadsafety
|
||||
|
||||
|
|
@ -1611,7 +1611,7 @@ Cursor objects
|
|||
If the *size* parameter is used, then it is best for it to retain the same
|
||||
value from one :meth:`fetchmany` call to the next.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Negative *size* values are rejected by raising :exc:`ValueError`.
|
||||
|
||||
.. method:: fetchall()
|
||||
|
|
@ -1641,7 +1641,7 @@ Cursor objects
|
|||
Read/write attribute that controls the number of rows returned by :meth:`fetchmany`.
|
||||
The default value is 1 which means a single row would be fetched per call.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Negative values are rejected by raising :exc:`ValueError`.
|
||||
|
||||
.. attribute:: connection
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ Signature algorithms
|
|||
:meth:`SSLContext.set_client_sigalgs` and
|
||||
:meth:`SSLContext.set_server_sigalgs` methods.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
Exceptions
|
||||
|
|
@ -958,7 +958,7 @@ Constants
|
|||
Whether the OpenSSL library has built-in support for External PSKs in TLS
|
||||
1.3 as described in :rfc:`9258`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. data:: HAS_PHA
|
||||
|
||||
|
|
@ -1133,7 +1133,7 @@ SSL Sockets
|
|||
functions support reading and writing of data larger than 2 GB. Writing
|
||||
zero-length data no longer fails with a protocol violation error.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Python now uses ``SSL_sendfile`` internally when possible. The
|
||||
function sends a file more efficiently because it performs TLS encryption
|
||||
in the kernel to avoid additional context switches.
|
||||
|
|
@ -1317,7 +1317,7 @@ SSL sockets also have the following additional methods and attributes:
|
|||
Return the group used for doing key agreement on this connection. If no
|
||||
connection has been established, returns ``None``.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLSocket.client_sigalg()
|
||||
|
||||
|
|
@ -1325,7 +1325,7 @@ SSL sockets also have the following additional methods and attributes:
|
|||
authentication on this connection, or ``None`` if no connection has been
|
||||
established or client authentication didn't occur.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLSocket.server_sigalg()
|
||||
|
||||
|
|
@ -1333,7 +1333,7 @@ SSL sockets also have the following additional methods and attributes:
|
|||
handshake on this connection, or ``None`` if no connection has been
|
||||
established or the cipher suite has no signature.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLSocket.compression()
|
||||
|
||||
|
|
@ -1709,7 +1709,7 @@ to speed up repeated connections from the same clients.
|
|||
:const:`True` this method will also return any associated aliases such as
|
||||
the ECDH curve names supported in older versions of OpenSSL.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLContext.set_default_verify_paths()
|
||||
|
||||
|
|
@ -1748,7 +1748,7 @@ to speed up repeated connections from the same clients.
|
|||
When connected, the :meth:`SSLSocket.cipher` method of SSL sockets will
|
||||
return details about the negotiated cipher.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLContext.set_groups(groups, /)
|
||||
|
||||
|
|
@ -1761,7 +1761,7 @@ to speed up repeated connections from the same clients.
|
|||
When connected, the :meth:`SSLSocket.group` method of SSL sockets will
|
||||
return the group used for key agreement on that connection.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLContext.set_client_sigalgs(sigalgs, /)
|
||||
|
||||
|
|
@ -1776,7 +1776,7 @@ to speed up repeated connections from the same clients.
|
|||
sockets will return the signature algorithm used for performing
|
||||
certificate-based client authentication on that connection.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLContext.set_server_sigalgs(sigalgs, /)
|
||||
|
||||
|
|
@ -1790,7 +1790,7 @@ to speed up repeated connections from the same clients.
|
|||
sockets will return the signature algorithm used by the server to
|
||||
complete the TLS handshake on that connection.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. method:: SSLContext.set_alpn_protocols(alpn_protocols)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
|
|||
|
||||
.. data:: abi_info
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
An object containing information about the ABI of the currently running
|
||||
Python interpreter.
|
||||
|
|
@ -2205,7 +2205,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
|
|||
:func:`sys.unraisablehook` can be overridden to control how unraisable
|
||||
exceptions are handled.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Exceptions are now printed with colorful text.
|
||||
|
||||
.. seealso::
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ Some facts and figures:
|
|||
.. versionchanged:: 3.14
|
||||
The *preset* keyword argument also works for streams.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
The default compression level was reduced to 6 (down from 9).
|
||||
It is the default level used by most compression tools and a better
|
||||
tradeoff between speed and performance.
|
||||
|
|
@ -294,7 +294,7 @@ The :mod:`tarfile` module defines the following exceptions:
|
|||
The exception that was raised to reject the replacement member is available
|
||||
as :attr:`!BaseException.__context__`.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
The following constants are available at the module level:
|
||||
|
|
@ -1146,7 +1146,7 @@ reused in custom filters:
|
|||
Note that this filter does not block *all* dangerous archive features.
|
||||
See :ref:`tarfile-further-verification` for details.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
|
||||
Link targets are now normalized.
|
||||
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ This module defines the following functions:
|
|||
.. versionchanged:: 3.13
|
||||
Added support for GNU/kFreeBSD.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Added support for Solaris.
|
||||
|
||||
|
||||
|
|
@ -632,7 +632,7 @@ since it is impossible to detect the termination of alien threads.
|
|||
|
||||
May raise :exc:`PythonFinalizationError`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
.. attribute:: name
|
||||
|
|
@ -786,7 +786,7 @@ All methods are executed atomically.
|
|||
.. versionchanged:: 3.14
|
||||
Lock acquisition can now be interrupted by signals on Windows.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -896,7 +896,7 @@ call release as many times the lock has been acquired can lead to deadlock.
|
|||
.. versionchanged:: 3.2
|
||||
The *timeout* parameter is new.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -1159,7 +1159,7 @@ Semaphores also support the :ref:`context management protocol <with-locks>`.
|
|||
.. versionchanged:: 3.2
|
||||
The *timeout* parameter is new.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *timeout*, not only integer or float.
|
||||
|
||||
.. method:: release(n=1)
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ Functions
|
|||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number as *time*, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ Functions
|
|||
``asctime(localtime(secs))``. Locale information is not used by
|
||||
:func:`ctime`.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ Functions
|
|||
:class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this
|
||||
function.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -280,7 +280,7 @@ Functions
|
|||
:c:func:`gmtime` failure. It's common for this to be restricted to years
|
||||
between 1970 and 2038.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ Functions
|
|||
.. versionchanged:: 3.13
|
||||
Raises an auditing event.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Accepts any real number, not only integer or float.
|
||||
|
||||
.. index::
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ Standard names are defined for the following types:
|
|||
The type of frame locals proxy objects, as found on the
|
||||
:attr:`frame.f_locals` attribute.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. seealso:: :pep:`667`
|
||||
|
||||
|
|
|
|||
|
|
@ -1177,7 +1177,7 @@ Test cases
|
|||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Now accepts a *formatter* to control how messages are formatted.
|
||||
|
||||
.. method:: assertNoLogs(logger=None, level=None)
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ This module offers the following functions:
|
|||
|
||||
.. audit-event:: winreg.DeleteTree key,sub_key winreg.DeleteTree
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
|
||||
.. function:: DeleteValue(key, value)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Any files may be present in the ZIP archive, but importers are only invoked for
|
|||
corresponding :file:`.pyc` file, meaning that if a ZIP archive
|
||||
doesn't contain :file:`.pyc` files, importing may be rather slow.
|
||||
|
||||
.. versionchanged:: next
|
||||
.. versionchanged:: 3.15
|
||||
Zstandard (*zstd*) compressed zip file entries are supported.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ The available exception and functions in this module are:
|
|||
that were concurrently computed. To compute checksums sequentially, use
|
||||
:func:`adler32` with the running checksum as the ``value`` argument.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. function:: compress(data, /, level=-1, wbits=MAX_WBITS)
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ The available exception and functions in this module are:
|
|||
that were concurrently computed. To compute checksums sequentially, use
|
||||
:func:`crc32` with the running checksum as the ``value`` argument.
|
||||
|
||||
.. versionadded:: next
|
||||
.. versionadded:: 3.15
|
||||
|
||||
.. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue