Opened 10 days ago
Closed 5 days ago
#5697 closed enhancement (fixed)
python3-3.13.3
Reported by: | Bruce Dubbs | Owned by: | lfs-book |
---|---|---|---|
Priority: | high | Milestone: | 12.4 |
Component: | Book | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description
New point version.
Note:
See TracTickets
for help on using tickets.
What's New in Python 3.13.3 final?
Release date: 2025-04-08*
macOS
Windows
pylauncher <PC/launcher2.c>
correctly detects a BOM when searching for the shebang. Fix by Chris Eibl.Tools/Demos
msgfmt
no longer adds thePOT-Creation-Date
to generated
.mo
files for consistency with GNU
msgfmt
.
msgctxt
when compiling messages in :program:
msgfmt
.Tests
test_ssl.test_dh_params
is skipped if the underlying TLS library does not support finite-field ephemeral Diffie-Hellman.
TERM
variable in the testing environment.
Security
!tempfile.SpooledTemporaryFile.writelines
. Previously, disk spillover was only checked after the lines iterator had been exhausted. This is now done after each line is written.Library
_interpreters.run_string
.
_interpreters.run_string
on string subclasses.
_PYTHON_SUBPROCESS_USE_POSIX_SPAWN
environment variable knob in :mod:
subprocess
to control the use of :func:os.posix_spawn
.!__new__
by decorator :class:warnings.deprecated
. Patch by Xuehai Pan.socket
address structures with uninitialized members. Now all structure members are initialized with zeroes by default.contextvars.ContextVar
with weird unahashable string names.socket
: Fix code parsing AF_BLUETOOTH socket addresses.gzip.GzipFile
with a filename fails, for example when passing an invalidcompresslevel
.
asyncio
.warnings.warn_explicit
.difflib.HtmlDiff
.PyConfig.use_system_logger
attribute, introduced in Python 3.13.2, has been removed. The introduction of this attribute inadvertently introduced an ABI breakage on macOS and iOS. The use of the system logger is now enabled by default on iOS, and disabled by default on macOS.
contains
, values, and pseudo-members for :class:
enum.Flag
.datetime.time.fromisoformat
to reject times with spaces in fractional part (for example,12:34:56.400 +02:00
), matching the C implementation.
.. index::
directives from the :mod:
uuid
module documentation. These directives previously created entries in the general index for :func:~uuid.getnode
as well as the :func:~uuid.uuid1
, :func:~uuid.uuid3
, :func:~uuid.uuid4
, and :func:~uuid.uuid5
constructor functions.random.sample
allowing the *counts* parameter to specify an empty population. So now,sample([], 0, counts=[])
and
sample('abc', k=0, counts=[0, 0, 0])
both give the same result as
sample([], 0)
.
traceback.print_last()
.
pow
with only :class:~decimal.Decimal
third argument.subprocess
module lazy as this was causing errors duringdel
finalizers calling methods such as
terminate
, or
kill
, or
send_signal
.
TypeError
in :meth:inspect.Signature.bind
for positional-only arguments provided by keyword when a variadic keyword argument (e.g.kwargs
) is present.
!_hashlib.hmac_new
and :func:!_hashlib.hmac_digest
. Patch by Bénédikt Tran.!asyncio.AbstractEventloop.run_forever
when another loop is already running.gzip.GzipFile
raising an unraisable exception during garbage collection when referring to a temporary object by breaking the reference loop with :mod:weakref
.functools.singledispatchmethod
caching introduced in :gh:85160
.importlib.abc.Loader.load_module
.locale
module to match the latest X Org locale alias mapping and support new locales in Glibc 2.41.sqlite3.Row
objects could segfault if their inherited :attr:~sqlite3.Cursor.description
was set toNone
. Patch by Erlend Aasland.
zipfile
by name. Reading duplicated entries (except the last one) byZipInfo
now emits a warning instead of raising an exception.
pydoc
for methods with themodule
attribute equal to
None
.
check_home
argument of :func:
sysconfig.is_python_build
to Python 3.15.hashlib.sha256
under :term:free threading
.mimetypes.guess_type
to use default mapping for emptyContent-Type
in registry.
asyncio.loop.create_task
, :func:asyncio.create_task
and :func:asyncio.TaskGroup.create_task
, by passing on all *kwargs* to the task factory set by :func:asyncio.loop.set_task_factory
.PyREPL
on Windows to support more keybindings, like the :kbd:
Control-←
and :kbd:Control-→
word-skipping keybindings and those with meta (i.e. :kbd:Alt
), e.g. :kbd:Alt-d
tokill-word
or :kbd:
Alt-Backspace
backward-kill-word
.
xml.etree.ElementTree
: Fix a crash in :meth:Element.find <xml.etree.ElementTree.Element.find>
, :meth:Element.findtext <xml.etree.ElementTree.Element.findtext>
and :meth:Element.findall <xml.etree.ElementTree.Element.findall>
when the tag to find implements an :meth:~object.__eq__
method mutating the element being queried. Patch by Bénédikt Tran.secure
argument of :class:
logging.handlers.SMTPHandler
.xml.etree.ElementTree
: Fix a crash in :meth:Element.remove <xml.etree.ElementTree.Element.remove>
when the element is concurrently mutated. Patch by Bénédikt Tran.os.confstr
, :any:os.pathconf
and :any:os.sysconf
on iOS and Android.IDLE
Documentation
asyncio.Future
and :class:asyncio.Task
in generic classes list.and :c:func:
PyUnicode_RPartition`.Core and Builtins
!list.append
as an unbound method.descriptor
object in a function where a bound method descriptor was used._PyMem_FreeDelayed
in :term:
free-threaded <free threading>
build.anext
failing on sync :meth:~object.__anext__
raising an exception.sys.monitoring
instrumentation while registering callback._PyModule_IsPossiblyShadowing
free threading
build when constructing a :class:code
object with :attr:~codeobject.co_consts
that contains instances of types that are not otherwise generated by the bytecode compiler.free threaded <free threading>
build when resizing a shared list or dictionary from multiple short-lived threads.column
and
end_column
in :mod:
ast
locations.PyRefTracer_DESTROY
not being sent from :file:
Python/ceval.c
Py_DECREF()
.
UnicodeDecodeError
or
SystemError
to be raised when using f-strings with
lambda
expressions with non-ASCII characters. Patch by Pablo Galindo
sys
module attributes.locals
inside an inline comprehension that uses the same local variable as the outer frame scope where the variable is a free or cell var.sre.c
.free threading
build whenrepr(set)
is called concurrently with
set.clear()
.
SystemExit
not getting returned by the REPL._Py_qsbr_reserve
in the free threading build.
MemoryError
in the free threaded build.C API
, :c:func:
PyGC_Disable()`, :c:func:`PyGC_IsEnabled()` to use atomic operation for thread-safety at free-threading build. Patch by Donghee Na.Build
CC
and
CFLAGS
variables to the
dtrace
command when utilizing SystemTap on Linux.
KeyError
when handling object sections during JIT building process.
Python.h
is included before
stdbool.h
unless
pyconfig.h
is included before or in some platform-specific contexts.
_Py_NO_SANITIZE_UNDEFINED
when compiling with a recent GCC version and undefined sanitizer enabled.
test_embed
from PGO training, whose contribution in recent versions is considered to be ignorable.