Opened 19 months ago
Closed 19 months ago
#5476 closed enhancement (fixed)
python3-3.12.3
| Reported by: | Bruce Dubbs | Owned by: | lfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.2 |
| Component: | Book | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
New point version.
Change History (2)
comment:1 by , 19 months ago
comment:2 by , 19 months ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed at commit 185b763812:
Update to setuptools-69.5.1. Update to python3-3.12.3. Update to openssl-3.3.0. Update to ninja-1.12.0. Update to man-db-2.12.1. Update to linux-6.8.6. Update to iana-etc-20240412. Update to vim-9.1.0330.
Note:
See TracTickets
for help on using tickets.

What's New in Python 3.12.3 final?
*Release date: 2024-04-09
Security
xml.etree.ElementTree.XMLParser.flushxml.etree.ElementTree.XMLPullParser.flushxml.parsers.expat.xmlparser.GetReparseDeferralEnabledxml.parsers.expat.xmlparser.SetReparseDeferralEnabledxml.sax.expatreader.ExpatParser.flushcollections.deque.indexwhen the deque is concurrently modified.ssl.SSLContext.cert_store_statsand :meth:ssl.SSLContext.get_ca_certsnow correctly lock access to the certificate store, when the :class:ssl.SSLContextis shared across multiple threads.Core and Builtins
f(3, *). Patch by Grigoryev Semyonhashlibbuilt-inHACL\* project_ C code from upstream that we use for many implementations when they are not present via OpenSSL in a given build. This also avoids the rare potential for a C symbol name one definition rule linking issue.INSTRUMENTED_CALL_FUNCTION_EX, setarg0tosys.monitoring.MISSINGinstead ofNonefor :monitoring-event:CALLevent.os.forkare now only prevented once all non-daemon threads exit.INSTRUMENTED_CALL_FUNCTION_EXalways emits :monitoring-event:CALL!object.__reduce__internal error handling.SyntaxErrorexceptions caused by invalid byte sequences. Patch by Pablo Galindoreversed. Patch by Donghee Na.tokenize.untokenizefunction to handle unicode named literals incorrectly. Patch by Pablo Galindosuperinside a comprehension in a class body.~object.__index__method as for :class:int.Library
mailbox.mbox.flush. Patch by Tony Mountifield.Py_DECREFtriggered crash in :mod:sslwhen creating a new_ssl._SSLContextif CPython was built implausibly such that the default cipher list is empty or the SSL library it was linked against reports a failure from its CSSL_CTX_set_cipher_list()API.zipfileextraction for directory entries with the name containing backslashes on Windows.typing.Anyto be instantiated with arguments.subprocess.Popen.waitno longer callsWaitForSingleObject()with a negative timeout: pass0ms if the timeout is negative. Patch by Victor Stinner..pdbrcNoneand other false values in :mod:urllib.parsefunctions :func:~urllib.parse.parse_qsand :func:~urllib.parse.parse_qsl. Also, they now raise a TypeError for non-zero integers and non-empty sequences.PathFinder.invalidate_caches, delegate toMetadataPathFinder.invalidate_caches.reprfor global :class:~enum.Flagmembers.tkinter.Checkbuttonwidget names to avoid collisions with automatically generated :class:tkinter.ttk.Checkbuttonwidget names within the same parent widget.os.fwalkand :func:shutil.rmtreeon opening named pipe._start_server, eliminating a window in which_start_servercan return a thread that is "serving" but without adocserverset.typing: raise :exc:SyntaxErrorinstead of :exc:AttributeErroron forward references as empty strings.logging.TimedRotatingFileHandlerforwhen='MIDNIGHT'andwhen='Wx'.logging.TimedRotatingFileHandlerhandler. :meth:!computeRollovernow always returns a timestamp larger than the specified time and works correctly during the DST change. :meth:!doRolloverno longer overwrite the already rolled over file, saving from data loss when run at midnight or during repeated time at the DST change.main.spectoNonewhen running a script with :mod:pdbemail.Message.as_stringthat results when a message that claims to be in the ascii character set actually has non-ascii characters. Non-ascii characters are now replaced with the U+FFFD replacement character, like in thereplaceerror handler.unittest.mock.create_autospecto pass the call through to the wrapped object to return the real result.ast.parsewould incorrectly flag conditional context managers (such aswith (x() if y else z()): ...) as invalid syntax iffeature_version=(3, 8)was passed. This reverts changes to the grammar made as part of gh-94949.multiprocessing.shared_memory.SharedMemory.logging.TimedRotatingFileHandler. It is now reliable for handlers withoutnamerand with arbitrary deterministicnamerthat leaves the datetime part in the file name unmodified.urllib.parsefunctions :func:~urllib.parse.parse_qsand :func:~urllib.parse.parse_qslnow support bytes arguments containing raw and percent-encoded non-ASCII data.csv.writernow always quotes or escapes'\r'and'\n', regardless of *lineterminator* value.csv.writer()now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.ast.unparseto handle format_spec with",'or.asyncio.BaseEventLoop.shutdown_default_executorto ensure the timeout passed to the coroutine behaves as expected.Noneargument in :class:propertymethods :meth:~property.getter, :meth:~property.setterand :meth:~property.deleter.DeprecationWarningis no longer omitted on access to thedocattributes of the deprecatedtyping.ioandtyping.repseudo-modules.inspect.unwrapfor types with thewrapperdata descriptor.call()method and types withnew()andinit()methods set to class methods, static methods, bound methods, partial functions, and other types of methods and descriptors in :meth:inspect.Signature.from_callable.doctestwhere incorrect line numbers would be reported for decorated functions.format()bugs when using the C implementation of :class:~decimal.Decimal: * memory leak in some rare cases when using thezformat option (coerce negative 0) * incorrect output when applying thezformat option to typeF(fixed-point with capitalNAN/INF) * incorrect output when applying the#format option (alternate form)urllib.requestno longer resolves the hostname before checking it against the system's proxy bypass list on macOS and Windows.orig_classattribute on objects returned when calling :mod:typinggeneric aliases (including generic aliases created using :data:typing.Annotated). Previously only :exc:AttributeErrorwas ignored.~xml.etree.ElementTree.XMLPullParserwith Expat 2.6.0.io.BufferedRandom.read1now flushes the underlying write buffer.no longer allows to match files and non-existing paths in recursive :func:~glob.glob.importlib.util.LazyLoaderfrom race conditions when multiple threads try to access attributes before the loading is complete.pydoc. Class methods no longer have "method of builtins.type instance" note. Corresponding notes are now added for class and unbound methods. Method and function aliases now have references to the module or the class where the origin was defined if it differs from the current. Bound methods are now listed in the static methods section. Methods of builtin classes are now supported as well as methods of Python classes.union of types<types-union>for :class:typing.Annotatedwith unhashable metadata.importlib.resources.simple.ResourceHandle.openfor text mode, added missedstreamargument.help(x)wherexis a :keyword:lambdafunction, which has anannotationsdictionary attribute with a"return"key._get_slotsbug which caused error when defining dataclasses with slots and a weakref_slot.io.BufferedReader.tell, :func:io.BufferedReader.seek, :func:_pyio.BufferedReader.tell, :func:io.BufferedRandom.tell, :func:io.BufferedRandom.seekand :func:_pyio.BufferedRandom.tellbeing able to return negative offsets.argparsewhen all options in a mutually exclusive group are suppressed.logging.handlers.TimedRotatingFileHandlerwhere multiple rotating handler instances pointing to files with the same name but different extensions would conflict and not delete the correct files.argparse.multiprocessing.connection.Listener.accept()to accept empty bytes as authkey. Not accepting empty bytes as key causes it to hang indefinitely.specif available. This allows getting source code for themainmodule when a custom loader is used.mimetypes.guess_typeproperly parsing of URLs with only a host name, URLs containing fragment or query, and filenames with only a UNC sharepoint on Windows. Based on patch by Dong-hee Na.Documentation
~logging.LoggerAdapterin the Logging Cookbook.Tests
--junit-xml=FILEcommand line option) in regrtest when hunting for reference leaks (-Roption). Patch by Victor Stinner.isolated_modulesasCleanImportdoes not remove modules imported during the context. Use it in importlib.resources tests to avoid leavingmodaround to impede importlib.metadata tests.-R,--huntrleaks) now show a summary of the number of leaks found in each iteration.--bisectoption to regrtest test runner: run failed tests withtest.bisect_cmdto identify failing tests. Patch by Victor Stinner.ProgramPriorityTestsintest_ospermanently changing the process priority.Build
libb2's PR #42 to fix compiling CPython on 32-bit Windows withclang-cl.vcruntime140_threads.dllwhen building with Visual Studio 2022 version 17.8.IDLE
Tools/Demos
LDSHAREDwhen building for WASI.C API
-Werror=declaration-after-statementcompiler flag again.