Opened 4 years ago
Closed 4 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 , 4 years ago
comment:2 by , 4 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
AttributeErrormetadata 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_ABSOLUTEinstruction, rather thanJUMP_FORWARDwith 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.deleterto clarify that they create a new copy of the property.__bases__attribute: the internal functionadd_subclass()now gets thePyTypeObject.tp_subclassesmember after callingPyWeakref_NewRefwhich can trigger a garbage collection which can indirectly modifyPyTypeObject.tp_subclasses. Patch by Victor Stinner._zoneinfo'smodule_freefunction to resolve a crash on wasm32-emscripten platform.Py_EndInterpreternow explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, callingPyObject_GC_UnTrackon the object crashed if the previous or the next object of thePyGC_Headstructure 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.Serverasasyncio.Server. Patch by Stefan Zabka.signalmodule no longer assumes that~signal.SIG_IGNand~signal.SIG_DFLare small int singletons.xml.etree.ElementTree.iterparsewhen the iterator is not exhausted. Patch by Jacob Walls.asyncio.DatagramTransport.asyncio.loop.sock_connectfor selector-based event loops. Patch by Thomas Grainger.TypeErrorifssl.SSLSocketis passed to transport-based APIs.shutil.rmtreecan now work with VirtualBox shared folders when running from the guest operating-system.urllib.request.HTTPPasswordMgr.find_user_passwordandurllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticatedwhich allowed to bypass authorization. For example, access to URIexample.org/foobarwas allowed if the user was authorized for URIexample.org/foo.typing.get_type_hints, support evaluating stringifiedParamSpecArgsandParamSpecKwargsannotations. Patch by Gregory Beauregard.tarfilemodule 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.ParamSpecargs and kwargs equal to themselves. Patch by Gregory Beauregard.NameErrorinasyncio.gatherwhen initial type check fails.typing.get_type_hints, support evaluating bare stringifiedTypeAliasannotations. Patch by Gregory Beauregard.xml.etree.ElementTreemodule. Now, instantiating anxml.etree.ElementTree.XMLParserwith atarget=Nonekeyword provides a defaultxml.etree.ElementTree.TreeBuildertarget as the Python implementation does.codeopmodule that was incorrectly identifying invalid code involving string quotes as valid code.ParamSpecpropagation forGenericAliasin line withConcatenate(and others).get_write_buffer_limitsmethod toasyncio.transports.WriteTransportand to the SSL transport.typing.get_type_hints, support evaluating stringifiedClassVarandFinalannotations insideAnnotated. Patch by Gregory Beauregard.typing.Annotatedto wraptyping.Finalandtyping.ClassVar. Patch by Gregory Beauregard.-d/--directoryin modulehttp.serverwhich is ignored when combined with command-line option--cgi. Patch by Géry Ogam.mock.patchraise aTypeErrorwith a relevant error message on invalid arg. Previously it allowed a crypticAttributeErrorto escape.importlib.metadata.EntryPoint.pattern, avoid potential REDoS by limiting ambiguity in consecutive whitespace.asynciogeneric classes now returntypes.GenericAliasin__class_getitem__instead of the same class.pdbnow gracefully handleshelpwhen__doc__is missing, for example when run with pregenerated optimized.pycfiles.__eq__and__hash__methods oftyping.ForwardRefnow honor themoduleparameter oftyping.ForwardRef. Forward references from different modules are now differentiated.__slots__toimportlib.metadata.DeprecatedList. Patch by Arie Bovenberg.calendar.sslmodule now handles certificates with bit strings in DN correctly.inspect.signaturethat was causing it to fail on some subclasses of classes with a__text_signature__referencing module globals. Patch by Weipeng Hong.asyncio.ensure_futuredid not close the coroutine. Patch by Kumar Aditya.tarfile.TarFile.getmembergetting a directory name with a trailing slash.MimeTypes.guess_type. Patch by Kumar Aditya.argparse.BooleanOptionalActionargument's default isargparse.SUPPRESSand it hashelpspecified. 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.pathlocation while the program is running, calling theimportlib.invalidate_cachesfunction will now also guarantee the new module is noticed.unittestsometimes drops frames from tracebacks of exceptions raised in tests.~typing.ParamSpecin~typing.Concatenatewith different parameter expressions. Substitution with a list of types returns now a tuple of types. Substitution withConcatenatereturns now aConcatenatewith concatenated lists of arguments.Documentation
escape4chm.pyscript used when building the CHM documentation fileTests
test_asyncioexecution.make_legacy_pycinLib/test/support/import_helper.pyno longer fails whenPYTHONPYCACHEPREFIXis set to a directory on a different device from where tempfiles are stored.test_importlib.test_windowscleans up registry keys after completion.test_jsontests checking forRecursionError: modify these tests to usesupport.infinite_recursion(). Patch by Victor Stinner.Build
configureno longer usesAC_C_CHAR_UNSIGNEDmacro andpyconfig.hno 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
.pyifiles. Patch by Alex Waygood and Terry Jan Reedy.C API
PyRun_InteractiveOnefrom parsing from the provided FD.