Opened 3 years ago
Closed 3 years ago
#5028 closed enhancement (fixed)
python3-3.10.3
Reported by: | Bruce Dubbs | Owned by: | Xi Ruoyao |
---|---|---|---|
Priority: | normal | Milestone: | 11.2 |
Component: | Book | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description
New point version
Change History (3)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Not a security update (at least, for now).
What's New in Python 3.10.3 final?
Release date: 2022-03-16
Core and Builtins
AttributeError
metadata information for nested attribute access calls. Patch by Pablo Galindo.float.__set_format__()
method tofloat.__setformat__()
to fix a typo introduced in Python 3.7. The method is only used by test_float. Patch by Victor Stinner.1not in x
. Now the parser only emits a warning, not a syntax error.JUMP_ABSOLUTE
instruction, rather thanJUMP_FORWARD
with an argument of(2**32)+offset
.__bool__
method. Patch by Jelle Zijlstra.va_end()
inModules/_hashopenssl.c
.setobject.c
, acquire strong references to the resulting items from the set. This prevents crashes in corner-cases of various set operations where the set gets mutated.~property.getter
,~property.setter
, and~property.deleter
to clarify that they create a new copy of the property.__bases__
attribute: the internal functionadd_subclass()
now gets thePyTypeObject.tp_subclasses
member after callingPyWeakref_NewRef
which can trigger a garbage collection which can indirectly modifyPyTypeObject.tp_subclasses
. Patch by Victor Stinner._zoneinfo
'smodule_free
function to resolve a crash on wasm32-emscripten platform.Py_EndInterpreter
now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, callingPyObject_GC_UnTrack
on the object crashed if the previous or the next object of thePyGC_Head
structure became a dangling pointer. Patch by Victor Stinner.Library
faulthandler
: On Linux 5.14 and newer, dynamically determine size of signal handler stack size CPython allocates usinggetauxval(AT_MINSIGSTKSZ)
. This changes allows for Python extension's request to Linux kernel to use AMX_TILE instruction set on Sapphire Rapids Xeon processor to succeed, unblocking use of the ISA in frameworks.asyncio.base_events.Server
asasyncio.Server
. Patch by Stefan Zabka.signal
module no longer assumes that~signal.SIG_IGN
and~signal.SIG_DFL
are small int singletons.xml.etree.ElementTree.iterparse
when the iterator is not exhausted. Patch by Jacob Walls.asyncio.DatagramTransport
.asyncio.loop.sock_connect
for selector-based event loops. Patch by Thomas Grainger.TypeError
ifssl.SSLSocket
is passed to transport-based APIs.shutil.rmtree
can now work with VirtualBox shared folders when running from the guest operating-system.urllib.request.HTTPPasswordMgr.find_user_password
andurllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated
which allowed to bypass authorization. For example, access to URIexample.org/foobar
was allowed if the user was authorized for URIexample.org/foo
.typing.get_type_hints
, support evaluating stringifiedParamSpecArgs
andParamSpecKwargs
annotations. Patch by Gregory Beauregard.tarfile
module creates a pax format archive, it will put an integer representation of timestamps in the ustar header (if possible) for the benefit of older unarchivers, in addition to the existing full-precision timestamps in the pax extended header.typing.ParamSpec
args and kwargs equal to themselves. Patch by Gregory Beauregard.NameError
inasyncio.gather
when initial type check fails.typing.get_type_hints
, support evaluating bare stringifiedTypeAlias
annotations. Patch by Gregory Beauregard.xml.etree.ElementTree
module. Now, instantiating anxml.etree.ElementTree.XMLParser
with atarget=None
keyword provides a defaultxml.etree.ElementTree.TreeBuilder
target as the Python implementation does.codeop
module that was incorrectly identifying invalid code involving string quotes as valid code.ParamSpec
propagation forGenericAlias
in line withConcatenate
(and others).get_write_buffer_limits
method toasyncio.transports.WriteTransport
and to the SSL transport.typing.get_type_hints
, support evaluating stringifiedClassVar
andFinal
annotations insideAnnotated
. Patch by Gregory Beauregard.typing.Annotated
to wraptyping.Final
andtyping.ClassVar
. Patch by Gregory Beauregard.-d
/--directory
in modulehttp.server
which is ignored when combined with command-line option--cgi
. Patch by Géry Ogam.mock.patch
raise aTypeError
with a relevant error message on invalid arg. Previously it allowed a crypticAttributeError
to escape.importlib.metadata.EntryPoint.pattern
, avoid potential REDoS by limiting ambiguity in consecutive whitespace.asyncio
generic classes now returntypes.GenericAlias
in__class_getitem__
instead of the same class.pdb
now gracefully handleshelp
when__doc__
is missing, for example when run with pregenerated optimized.pyc
files.__eq__
and__hash__
methods oftyping.ForwardRef
now honor themodule
parameter oftyping.ForwardRef
. Forward references from different modules are now differentiated.__slots__
toimportlib.metadata.DeprecatedList
. Patch by Arie Bovenberg.calendar
.ssl
module now handles certificates with bit strings in DN correctly.inspect.signature
that was causing it to fail on some subclasses of classes with a__text_signature__
referencing module globals. Patch by Weipeng Hong.asyncio.ensure_future
did not close the coroutine. Patch by Kumar Aditya.tarfile.TarFile.getmember
getting a directory name with a trailing slash.MimeTypes.guess_type
. Patch by Kumar Aditya.argparse.BooleanOptionalAction
argument's default isargparse.SUPPRESS
and it hashelp
specified. Patch by Felix Fontein..write()
method of a member file inZipFile
, when the input data is an object that supports the buffer protocol, the file length may be wrong.sys.path
location while the program is running, calling theimportlib.invalidate_caches
function will now also guarantee the new module is noticed.unittest
sometimes drops frames from tracebacks of exceptions raised in tests.~typing.ParamSpec
in~typing.Concatenate
with different parameter expressions. Substitution with a list of types returns now a tuple of types. Substitution withConcatenate
returns now aConcatenate
with concatenated lists of arguments.Documentation
escape4chm.py
script used when building the CHM documentation fileTests
test_asyncio
execution.make_legacy_pyc
inLib/test/support/import_helper.py
no longer fails whenPYTHONPYCACHEPREFIX
is set to a directory on a different device from where tempfiles are stored.test_importlib.test_windows
cleans up registry keys after completion.test_json
tests checking forRecursionError
: modify these tests to usesupport.infinite_recursion()
. Patch by Victor Stinner.Build
configure
no longer usesAC_C_CHAR_UNSIGNED
macro andpyconfig.h
no longer defines reserved symbol__CHAR_UNSIGNED__
.Windows
Trimed as the entires are unrelated with LFS.
macOS
Trimed as the entries are unrelated with LFS.
IDLE
.pyi
files. Patch by Alex Waygood and Terry Jan Reedy.C API
PyRun_InteractiveOne
from parsing from the provided FD.