The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.
This package contains header files, a static library, and development
tools for building Python modules, extending the Python interpreter or
embedding Python in applications.
This also includes the Python distutils, which were in the Python
package up to version 2.2.2.
Provides
Requires
License
Python-2.0
Changelog
* Mon Nov 23 2026 Matej Cepl <mcepl@cepl.eu>
- CVE-2026-103995: validate http.client Content-Length and
chunk-size (GH-150752) (bsc#1288328)
CVE-2026-103995-http-client-content-length.patch
* Thu Nov 19 2026 Matej Cepl <mcepl@cepl.eu>
- CVE-2026-116566: Reject null bytes in socket.getaddrinfo()
host and port (GH-160899) (bsc#1289106)
CVE-2026-116566-reject-null-bytes-getaddrinfo.patch
* Wed Oct 28 2026 Matej Cepl <mcepl@cepl.eu>
- Update to 3.15.2:
- Security
- gh-160300: Fix http.cookiejar.DefaultCookiePolicy accepting
and returning cookies with a negative Version attribute
without checking their domain against the request host.
Such cookies are now ignored.
- CVE-2026-114583, gh-160097: tarfile.tar_filter() now
rejects link members whose path resolves to the destination
directory itself, as tarfile.data_filter() already did.
(bsc#1288258)
- CVE-2026-115557, gh-160040: ssl now rejects TLS certificate
chains that contain any of a set of compromised eMudhra
intermediate CA keys. This is an extraordinary measure and
a last line of defense: removing trust is primarily the job
of the platform root store, and the built-in denylist only
blocks connections while that update has not yet reached
the OS, a container image, or a bundled trust store in
various Python packages. Entries are added to the denylist
only under a very high threshold. The denylist matches on
the public key (the SHA-256 digest of the RFC 5280
SubjectPublicKeyInfo), so it also covers the cross-signed
certificates that reuse one of the distrusted keys.
(bsc#1287903, bsc#1287357)
- Core and Builtins
- gh-160491: Fix the location reported for invalid escape
sequences in f-strings and t-strings. The SyntaxError now
points at the literal part that contains the escape,
instead of at the closing quote.
- gh-160268: Fix a crash in tokenize when a mismatched
closing bracket follows the opening brace of an f-string or
t-string replacement field, as in f'{]a'. It now raises the
same “unmatched” error as the parser.
- gh-106045: Fix venv path discovery when the base executable
resolves to a location outside the installation pointed to
by the home key in pyvenv.cfg. The standard library is now
found from home, and extension modules from the resolved
executable’s installation, instead of falling back to the
compiled-in prefix.
- gh-160162: Fix a crash on 32-bit platforms when left
shifting an int by a count close to sys.maxsize *
sys.int_info.bits_per_digit. OverflowError is now raised,
as for other too large counts.
- gh-160179: Fix bytearray.__init__() leaving uninitialized
memory in the object when it fails on a list or tuple
containing an integer not in range(256). The object is now
empty after the failed call.
- gh-159739: Fix a possible crash when assigning metadata to
classmethod or staticmethod objects.
- gh-159739: Fix a race in list.__sizeof__() when a list is
concurrently resized on a free-threaded build.
- gh-159739: Fix a reference leak when the value of a type
alias is evaluated recursively or concurrently.
- gh-159739: Fix a crash in free-threaded builds when
codecs.unregister() is called concurrently.
- gh-159963: Fix a regression in Python 3.15.0 where threads
importing submodules of packages for the first time could
raise _DeadlockError or a spurious “partially initialized
module” ImportError, or block one another, with no
circular import involved. importlib.import_module() now
returns the partially initialized module in a cross-thread
circular import, as the import statement does, instead of
raising _DeadlockError.
- gh-159739: Fix reference leaks when free-threaded garbage
collection aborts early because of an allocation error.
- gh-159739: Prevent free-threaded builds from interning and
immortalizing complex subclasses in code object constants.
- gh-159739: Fix a reference leak in binary, ternary, and
comparison operations on weak reference proxies when
another operand is a dead proxy.
- gh-159739: Fix a crash when constructing an error for
invalid generic alias arguments.
- gh-159739: Allow the garbage collector to break reference
cycles involving property accessors or names.
- gh-159739: Fix a crash in warnings.warn() when
skip_file_prefixes is an empty tuple subclass. Propagate
allocation errors when creating the fallback filename.
- gh-159431: Fix an assertion failure, or an immortal object
becoming mortal, on the free threaded build when an object
passed to the internal delayed decref mechanism is immortal
or becomes immortal before the delayed decref is processed
by the garbage collector.
- gh-159294: Fix a crash in a debug build when creating an
ExceptionGroup or BaseExceptionGroup fails with
MemoryError. Patch by Christian Aurich Zanettini Martins.
- gh-159244: Fix a crash in dict and dict.update() in the
free-threaded build when another thread concurrently
mutates a list used as a key/value pair. Patch by Christian
Aurich Zanettini Martins.
- gh-159111: Update mimalloc version from 2.1.2 to 2.5.2.
Patch by Donghee Na.
- gh-154318: Fix a crash when hashing a deeply nested tuple
or frozendict. A RecursionError is now raised instead of
overflowing the C stack.
- gh-151818: Fix a double-free crash in list.append() (the
specialized CALL_LIST_APPEND instruction) when growing the
list fails with MemoryError.
- Library
- gh-160549: Fix a crash when a
compression.zstd.ZstdCompressor that uses worker threads
and a ZstdDict is deallocated, or the interpreter exits,
while data passed to compress() is still being compressed.
- gh-160535: Fix a crash in compression.zstd when the garbage
collector frees a ZstdCompressor that uses worker threads
together with its ZstdDict before the compression of
already submitted data has finished.
- gh-160520: Fix asyncio SSL transports not applying
ssl_shutdown_timeout when the peer has sent EOF but does
not read the data still queued for it. Closing such a
connection could wait indefinitely; it is now aborted with
TimeoutError once the timeout expires.
- gh-160326: Raise ValueError for a NaN timeout in
threading.Condition.wait() and the blocking calls built on
it, such as threading.Event.wait(),
threading.Semaphore.acquire() and queue.Queue.get(),
instead of returning at once or looping without ever timing
out.
- gh-159739: Fix crashes in profiling.tracing when a custom
timer reinitializes the profiler or its result clears or
disables the profiler during conversion or cleanup.
- gh-159739: Fix crashes in xml.parsers.expat when a
character data callback disables buffering or clears
another handler during a flush, or when interning an
attribute name changes ordered_attributes.
- gh-160299: Fix symtable.Symbol.is_referenced() for local
and nonlocal symbols in function scopes when their only
uses are in inlined comprehensions.
- gh-159739: Fix a crash when a ctypes structure subclass
cannot be created due to an allocation failure.
- gh-159739: Fix clearing a pickle.Unpickler memo so that the
unpickler can be reused for independent records.
- gh-160171: On the server side,
ssl.SSLSocket.get_unverified_chain() now returns the
client’s certificate when the session was resumed from a
session ticket, instead of an empty list, and returns an
empty list instead of raising AttributeError when the
client sent no certificate.
- gh-159739: Fix a possible crash in abc.ABCMeta instance
checks when a subclass-checking callback changes the
instance’s class.