Opened 8 months ago
Closed 8 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 , 8 months ago
comment:2 by , 8 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.flush
xml.etree.ElementTree.XMLPullParser.flush
xml.parsers.expat.xmlparser.GetReparseDeferralEnabled
xml.parsers.expat.xmlparser.SetReparseDeferralEnabled
xml.sax.expatreader.ExpatParser.flush
collections.deque.index
when the deque is concurrently modified.ssl.SSLContext.cert_store_stats
and :meth:ssl.SSLContext.get_ca_certs
now correctly lock access to the certificate store, when the :class:ssl.SSLContext
is shared across multiple threads.Core and Builtins
f(3, *)
. Patch by Grigoryev Semyon
hashlib
built-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
, set
arg0
to
sys.monitoring.MISSING
instead of
None
for :monitoring-event:
CALL
event.os.fork
are now only prevented once all non-daemon threads exit.INSTRUMENTED_CALL_FUNCTION_EX
always emits :monitoring-event:
CALL
!object.__reduce__
internal error handling.SyntaxError
exceptions caused by invalid byte sequences. Patch by Pablo Galindoreversed
. Patch by Donghee Na.tokenize.untokenize
function to handle unicode named literals incorrectly. Patch by Pablo Galindosuper
inside a comprehension in a class body.~object.__index__
method as for :class:int
.Library
mailbox.mbox.flush
. Patch by Tony Mountifield.Py_DECREF
triggered crash in :mod:
ssl
when creating a new_ssl._SSLContext
if 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 C
SSL_CTX_set_cipher_list()
API.
zipfile
extraction for directory entries with the name containing backslashes on Windows.typing.Any
to be instantiated with arguments.subprocess.Popen.wait
no longer callsWaitForSingleObject()
with a negative timeout: pass
0
ms if the timeout is negative. Patch by Victor Stinner.
.pdbrc
None
and other false values in :mod:
urllib.parse
functions :func:~urllib.parse.parse_qs
and :func:~urllib.parse.parse_qsl
. Also, they now raise a TypeError for non-zero integers and non-empty sequences.PathFinder.invalidate_caches
, delegate to
MetadataPathFinder.invalidate_caches
.
repr
for global :class:~enum.Flag
members.tkinter.Checkbutton
widget names to avoid collisions with automatically generated :class:tkinter.ttk.Checkbutton
widget names within the same parent widget.os.fwalk
and :func:shutil.rmtree
on opening named pipe._start_server
, eliminating a window in which
_start_server
can return a thread that is "serving" but without a
docserver
set.
typing
: raise :exc:SyntaxError
instead of :exc:AttributeError
on forward references as empty strings.logging.TimedRotatingFileHandler
forwhen='MIDNIGHT'
and
when='Wx'
.
logging.TimedRotatingFileHandler
handler. :meth:!computeRollover
now always returns a timestamp larger than the specified time and works correctly during the DST change. :meth:!doRollover
no longer overwrite the already rolled over file, saving from data loss when run at midnight or during repeated time at the DST change.main.spec
to
None
when running a script with :mod:
pdb
email.Message.as_string
that 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 thereplace
error handler.
unittest.mock.create_autospec
to pass the call through to the wrapped object to return the real result.ast.parse
would incorrectly flag conditional context managers (such aswith (x() if y else z()): ...
) as invalid syntax if
feature_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 withoutnamer
and with arbitrary deterministic
namer
that leaves the datetime part in the file name unmodified.
urllib.parse
functions :func:~urllib.parse.parse_qs
and :func:~urllib.parse.parse_qsl
now support bytes arguments containing raw and percent-encoded non-ASCII data.csv.writer
now 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.unparse
to handle format_spec with"
,
'
or
.
asyncio.BaseEventLoop.shutdown_default_executor
to ensure the timeout passed to the coroutine behaves as expected.None
argument in :class:
property
methods :meth:~property.getter
, :meth:~property.setter
and :meth:~property.deleter
.DeprecationWarning
is no longer omitted on access to thedoc
attributes of the deprecated
typing.io
and
typing.re
pseudo-modules.
inspect.unwrap
for types with thewrapper
data descriptor.
call()
method and types with
new()
and
init()
methods set to class methods, static methods, bound methods, partial functions, and other types of methods and descriptors in :meth:
inspect.Signature.from_callable
.doctest
where 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 thez
format option (coerce negative 0) * incorrect output when applying the
z
format option to type
F
(fixed-point with capital
NAN
/
INF
) * incorrect output when applying the
#
format option (alternate form)
urllib.request
no longer resolves the hostname before checking it against the system's proxy bypass list on macOS and Windows.
orig_class
attribute on objects returned when calling :mod:
typing
generic aliases (including generic aliases created using :data:typing.Annotated
). Previously only :exc:AttributeError
was ignored.~xml.etree.ElementTree.XMLPullParser
with Expat 2.6.0.io.BufferedRandom.read1
now flushes the underlying write buffer.no longer allows to match files and non-existing paths in recursive :func:
~glob.glob
.importlib.util.LazyLoader
from 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.Annotated
with unhashable metadata.importlib.resources.simple.ResourceHandle.open
for text mode, added missedstream
argument.
help(x)
where
x
is a :keyword:
lambda
function, which has anannotations
dictionary attribute with a
"return"
key.
_get_slots
bug 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.seek
and :func:_pyio.BufferedRandom.tell
being able to return negative offsets.argparse
when all options in a mutually exclusive group are suppressed.logging.handlers.TimedRotatingFileHandler
where 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.spec
if available. This allows getting source code for the
main
module when a custom loader is used.
mimetypes.guess_type
properly 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.LoggerAdapter
in the Logging Cookbook.Tests
--junit-xml=FILE
command line option) in regrtest when hunting for reference leaks (
-R
option). Patch by Victor Stinner.
isolated_modules
as
CleanImport
does not remove modules imported during the context. Use it in importlib.resources tests to avoid leaving
mod
around to impede importlib.metadata tests.
-R
,
--huntrleaks
) now show a summary of the number of leaks found in each iteration.
--bisect
option to regrtest test runner: run failed tests with
test.bisect_cmd
to identify failing tests. Patch by Victor Stinner.
ProgramPriorityTests
in
test_os
permanently changing the process priority.
Build
libb2
's PR #42 to fix compiling CPython on 32-bit Windows with
clang-cl
.
vcruntime140_threads.dll
when building with Visual Studio 2022 version 17.8.
IDLE
Tools/Demos
LDSHARED
when building for WASI.
C API
-Werror=declaration-after-statement
compiler flag again.