]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Sergey Miryanov [Fri, 3 Oct 2025 09:58:00 +0000 (14:58 +0500)]
gh-132042: Remove resolve_slotdups() to speedup class creation (#132156)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Kumar Aditya [Fri, 3 Oct 2025 07:18:57 +0000 (12:48 +0530)]
gh-105987: unskip `test_issue105987` from `test_asyncio.test_eager_task_factory` (#139538)
Angela Liss [Fri, 3 Oct 2025 05:50:19 +0000 (01:50 -0400)]
gh-137840: Implement PEP 728 (closed and extra_items in typing.TypedDict) (#137933)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Victor Stinner [Thu, 2 Oct 2025 20:51:57 +0000 (22:51 +0200)]
gh-139322: Reenable test_os.test_getlogin() (#139498)
Fix also getlogin() errno.
Alex Willmer [Thu, 2 Oct 2025 19:50:36 +0000 (20:50 +0100)]
gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496)
* Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`
The sentence was missing a negation and contradicted the other two
descriptions in the same commit. I believe code behaviour is correct.
* fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`
* Remove unncessary NEWS.d entry
Victor Stinner [Thu, 2 Oct 2025 18:46:25 +0000 (20:46 +0200)]
gh-139322: Remove redundant `test_os.Win32ErrorTests` (#139477)
test_os.OSErrorTests already covers the OSError class and is more
complete than Win32ErrorTests.
Victor Stinner [Thu, 2 Oct 2025 16:10:36 +0000 (18:10 +0200)]
gh-55258: Reenable support test_get_original_stdout() (#139499)
Victor Stinner [Thu, 2 Oct 2025 16:08:29 +0000 (18:08 +0200)]
gh-139504: Catch BrokenPipeError in ssl test_client_sigalgs_mismatch() (#139505)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Victor Stinner [Thu, 2 Oct 2025 16:05:37 +0000 (18:05 +0200)]
Remove @tiran from CODEOWNERS (#139513)
Christian Heimes is now inactive for 2 years.
Victor Stinner [Thu, 2 Oct 2025 15:30:08 +0000 (17:30 +0200)]
gh-77476: Remove urllib HTTP test (#139502)
Remove test_sites_no_connection_close() which is skipped since 2018
(commit
36d56ea826caffbeac0fc0c6d90248b80516e33c ).
Eric Snow [Thu, 2 Oct 2025 15:13:22 +0000 (09:13 -0600)]
gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945)
The section provides a brief overview of the Python runtime's execution environment. It is meant to be implementation agnostic,
Victor Stinner [Thu, 2 Oct 2025 14:52:10 +0000 (16:52 +0200)]
gh-89745: Remove test_embed.test_init_read_set() (#139500)
Since Python 3.11, it's no longer possible to call PyConfig_Read() to
get the path configuration, and then modify the path configuration.
Adam Turner [Thu, 2 Oct 2025 14:51:48 +0000 (15:51 +0100)]
GH-123299: Copyedit 3.14 What's New: Other Language Changes (#139425)
Victor Stinner [Thu, 2 Oct 2025 14:44:02 +0000 (16:44 +0200)]
gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503)
Replace hardcoded 5 seconds with support.SHORT_TIMEOUT.
Fix the following error on slow CI such as GitHub Action UBSan:
test test_pyrepl failed -- Traceback (most recent call last):
File "Lib/test/test_pyrepl/test_unix_console.py", line 362, in test_repl_eio
_, err = proc.communicate(timeout=5) # sleep for pty to settle
~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "Lib/subprocess.py", line 1219, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "Lib/subprocess.py", line 2126, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Lib/subprocess.py", line 1266, in _check_timeout
raise TimeoutExpired(
...<2 lines>...
stderr=b''.join(stderr_seq) if stderr_seq else None)
subprocess.TimeoutExpired: Command '[...]' timed out after 5 seconds
Peter [Thu, 2 Oct 2025 10:28:29 +0000 (18:28 +0800)]
gh-139487: add missing imports for standalone doctest `Enum` examples (#139488)
ivonastojanovic [Wed, 1 Oct 2025 20:18:54 +0000 (21:18 +0100)]
gh-135953: Add Gecko reporter to sampling profiler (#139364)
Signed-off-by: Pablo Galindo Salgado <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
Kumar Aditya [Wed, 1 Oct 2025 17:49:31 +0000 (23:19 +0530)]
gh-116946: partial revert gh-139073 for thread handle type (#139474)
Victor Stinner [Wed, 1 Oct 2025 14:42:45 +0000 (16:42 +0200)]
gh-139322: Create test_os package (#139453)
* Move test_posix.py and test_os.py to Lib/test/test_os/.
* Split Windows specific test cases to a new test_windows.py file.
Nadeshiko Manju [Wed, 1 Oct 2025 11:34:47 +0000 (19:34 +0800)]
gh-123828: Fix data race in `_interpchannels._waiting_release` (GH-124107)
Bénédikt Tran [Wed, 1 Oct 2025 09:10:12 +0000 (11:10 +0200)]
gh-139327: fix some reference leaks in `sqlite3` error branches (#139328)
Ken Jin [Wed, 1 Oct 2025 08:48:37 +0000 (16:48 +0800)]
gh-139210: Move gh-139210 patch NEWS file to correct section (#139469)
Move gh-139210 patch NEWS file to correct section
Sergey Miryanov [Wed, 1 Oct 2025 07:45:58 +0000 (12:45 +0500)]
gh-116946: remove unnecessary gc from immutable types (#139073)
Cody Maloney [Wed, 1 Oct 2025 07:06:26 +0000 (00:06 -0700)]
gh-138013: Split BufferedIO tests from test_io.test_general (#139454)
The last remaining set of tests to split out that are focused on one
specific implementation portion (`bufferedio.c`).
test_io.test_general is now largely tests around `io.open` and module
properties (ex. pickling, class hierarchy, module members, etc).
This closes #138013.
Victor Stinner [Wed, 1 Oct 2025 06:58:18 +0000 (08:58 +0200)]
Fix typo in tracemalloc.c (#139450)
yihong [Wed, 1 Oct 2025 05:49:49 +0000 (13:49 +0800)]
gh-138899: fix `sys.ps1` in asyncio repl (#138900)
Hugo van Kemenade [Wed, 1 Oct 2025 05:40:54 +0000 (08:40 +0300)]
gh-92266: Update pre-commit (#139411)
Petr Viktorin [Wed, 1 Oct 2025 04:16:06 +0000 (06:16 +0200)]
Document that `PyInterpreterState_GetDict` returns a borrowed reference (#139451)
Adam Turner [Tue, 30 Sep 2025 18:18:13 +0000 (19:18 +0100)]
GH-123299: Copyedit 3.14 What's New: Deprecated (#139433)
Ken Jin [Tue, 30 Sep 2025 17:50:50 +0000 (01:50 +0800)]
gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211)
Cody Maloney [Tue, 30 Sep 2025 15:37:15 +0000 (08:37 -0700)]
gh-138013: Split TextIO tests from test_io.test_general (#139173)
gh-138013: Split TextIO tests from test_general
These tests take 1.3 seconds on my dev machine, match fairly closely
with testing `textio.c` implementation only.
Petr Viktorin [Tue, 30 Sep 2025 14:43:49 +0000 (16:43 +0200)]
gh-139116: tracemalloc: Detach thread state when acquiring tables_lock (GH-139449)
* gh-139116: tracemalloc: Detach thread state when acquiring tables_lock
This prevents a deadlock when:
- One thread is in `_PyTraceMalloc_Stop`, with `TABLES_LOCK` held, calling
`PyRefTracer_SetTracer` which wants to stop the world
- Another is thread in `PyTraceMalloc_Track`, just attached thread state, waiting
for `TABLES_LOCK`
Detaching the thread state while waiting for `TABLES_LOCK` allows
`PyRefTracer_SetTracer` to stop the world.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Serhiy Storchaka [Tue, 30 Sep 2025 09:20:17 +0000 (12:20 +0300)]
gh-63161: Add more tests for source encoding (#139440)
Bénédikt Tran [Tue, 30 Sep 2025 09:18:55 +0000 (11:18 +0200)]
gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (#139296)
Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.
While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.
AN Long [Tue, 30 Sep 2025 09:08:50 +0000 (18:08 +0900)]
gh-138092: Allow calling mmap.flush with offset only (#138093)
Adam Turner [Mon, 29 Sep 2025 17:59:25 +0000 (18:59 +0100)]
Remove link to the PDF downloads (#139142)
Serhiy Storchaka [Mon, 29 Sep 2025 15:32:38 +0000 (18:32 +0300)]
gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652)
Adam Turner [Mon, 29 Sep 2025 15:11:54 +0000 (16:11 +0100)]
GH-123299: Copyedit 3.14 What's New: CPython bytecode changes (#139402)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Denis Sergeev [Mon, 29 Sep 2025 10:40:36 +0000 (13:40 +0300)]
gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (#139147)
Reported by: Dmitrii Chuprov <cheese@altlinux.org>
Signed-off-by: Denis Sergeev <zeff@altlinux.org>
Hugo van Kemenade [Mon, 29 Sep 2025 09:03:23 +0000 (11:03 +0200)]
gh-76007: Deprecate `__version__` attribute (#138675)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Gordon Messmer [Mon, 29 Sep 2025 06:03:06 +0000 (23:03 -0700)]
gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)
Make UTF8 support for the IMAP APPEND command RFC 6855 compliant.
Jeff Epler [Sun, 28 Sep 2025 21:55:44 +0000 (16:55 -0500)]
Edit outdated comment (#121152)
A comment about a possible relaxation of how bytes URLs are treated
in Python 3.3 is no longer relevant or useful.
Russell Keith-Magee [Sun, 28 Sep 2025 21:50:46 +0000 (05:50 +0800)]
gh-132006: Add support for handling XCPrivacy manifests (#139163)
Adds a PrivacyInfo.xcprivacy file when packaging `_hashlib` and `_ssl` modules
for iOS (based on the original OpenSSL sources); and adds handling to the build
script to allow any app to add `xcprivacy` handling for a binary module.
Bénédikt Tran [Sun, 28 Sep 2025 17:30:44 +0000 (19:30 +0200)]
gh-139393: fix `_CALL_LEN` JIT tests for tuples (#139394)
Fix a regression introduced in
7ce25edb8f41e527ed479bf61ef36dc9841b4ac5
where `_PY_NSMALLPOSINTS` was changed from 257 to 1025.
Yongzi Li [Sun, 28 Sep 2025 16:46:01 +0000 (00:46 +0800)]
gh-135447: Document the ``NOT_TAKEN`` & ``POP_ITER`` bytecode instructions (#135803)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
yihong [Sun, 28 Sep 2025 11:49:18 +0000 (19:49 +0800)]
gh-139374: colorize traceback when using `timeit` command-line interface (#139375)
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Bénédikt Tran [Sun, 28 Sep 2025 08:27:04 +0000 (10:27 +0200)]
gh-90949: expose Expat API to tune exponential expansion protections (#139368)
Expose the XML Expat 2.7.2 APIs to tune protections against
"billion laughs" [1] attacks.
The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:
- `parser.SetBillionLaughsAttackProtectionActivationThreshold(threshold)`, and
- `parser.SetBillionLaughsAttackProtectionMaximumAmplification(max_factor)`.
This completes the work in
f04bea44c37793561d753dd4ca6e7cd658137553 ,
and improves the existing related documentation.
[1]: https://en.wikipedia.org/wiki/Billion_laughs_attack
Stan Ulbrych [Sat, 27 Sep 2025 02:44:36 +0000 (03:44 +0100)]
gh-139312: Update bundled libexpat to 2.7.3 (GH-139319)
+ Blurb
+ Update sbom.spdx.json
Jacob Bower [Fri, 26 Sep 2025 18:52:10 +0000 (11:52 -0700)]
gh-139276: Remove generator type check in _testcapimodule.c:raise_SIGINT_then_send_None (#139252)
* Remove generator type check in raise_SIGINT_then_send_None
In the Cinder JIT we use a different type for generators, which breaks
the test which uses this function.
In general I believe the intent with generators is they have the right
structure rather than type, so a failure to find the 'send()' method is arguably
more correct if the wrong object is used.
* Also stop using PyGenObject type
Bénédikt Tran [Fri, 26 Sep 2025 17:59:40 +0000 (19:59 +0200)]
gh-90949: amend GH-139234 in prevision of future mitigation API (#139366)
Fix some typos left in
f04bea44c37793561d753dd4ca6e7cd658137553 ,
and simplify some internal functions to ease maintenance of future
mitigation APIs.
Tian Gao [Fri, 26 Sep 2025 14:17:02 +0000 (22:17 +0800)]
gh-139289: Lazy import rlcompleter to fix the refleak (#139305)
Bénédikt Tran [Fri, 26 Sep 2025 14:13:56 +0000 (16:13 +0200)]
gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (#139234)
Expose the XML Expat 2.7.2 mitigation APIs to disallow use of
disproportional amounts of dynamic memory from within an Expat
parser (see CVE-2025-59375 for instance).
The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:
- `parser.SetAllocTrackerActivationThreshold(threshold)`, and
- `parser.SetAllocTrackerMaximumAmplification(max_factor)`.
sobolevn [Fri, 26 Sep 2025 11:21:38 +0000 (14:21 +0300)]
gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (#139318)
Sebastian Pipping [Fri, 26 Sep 2025 09:59:08 +0000 (11:59 +0200)]
gh-127502: Fix typo in XML security notes (#139335)
Raymond Hettinger [Fri, 26 Sep 2025 05:04:49 +0000 (00:04 -0500)]
gh-138682: Add symmetric difference to Counter (gh-138766)
Seth Michael Larson [Thu, 25 Sep 2025 17:13:45 +0000 (17:13 +0000)]
gh-139330: Check expat version/checksum in SBOM with refresh.sh
Check expat version/checksum in SBOM with refresh.sh
Pablo Galindo Salgado [Thu, 25 Sep 2025 14:34:57 +0000 (15:34 +0100)]
gh-138122: Allow to filter by thread in tachyon's flamegraph (#139216)
Jan-Eric Nitschke [Thu, 25 Sep 2025 13:46:12 +0000 (15:46 +0200)]
gh-138772: Add tests for Turtle.dot() signature (GH-138773)
Victor Stinner [Thu, 25 Sep 2025 09:42:16 +0000 (11:42 +0200)]
gh-139156: Optimize _PyUnicode_EncodeCharmap() (#139306)
Specialize _PyUnicode_EncodeCharmap() for EncodingMapType which is
used by Python codecs such as iso8859_15.
Pablo Galindo Salgado [Wed, 24 Sep 2025 23:16:44 +0000 (00:16 +0100)]
gh-139275: Fix compilation of Modules/_remote_debugging_module.c when the system doesn't have process_vm_readv (#139307)
dgpb [Wed, 24 Sep 2025 21:05:30 +0000 (00:05 +0300)]
gh-133059: Increase the small positive integer cache to 1024 (GH-133160)
yihong [Wed, 24 Sep 2025 18:52:11 +0000 (02:52 +0800)]
gh-139292: avoid extra tailing blank line in `python -m inspect -d <target>` (#139293)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Victor Stinner [Wed, 24 Sep 2025 15:57:29 +0000 (17:57 +0200)]
gh-139156: Optimize the UTF-7 encoder (#139253)
Remove base64SetO and base64WhiteSpace parameters.
Victor Stinner [Wed, 24 Sep 2025 14:39:40 +0000 (16:39 +0200)]
gh-139156: Use PyBytesWriter in PyUnicode_EncodeCodePage() (#139259)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Victor Stinner [Wed, 24 Sep 2025 14:15:34 +0000 (16:15 +0200)]
gh-139156: Use PyBytesWriter in _PyUnicode_EncodeCharmap() (#139251)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Add _PyBytesWriter_GetSize() and _PyBytesWriter_GetData() static
inline functions.
sobolevn [Wed, 24 Sep 2025 13:24:58 +0000 (16:24 +0300)]
Remove `.. deprecated-removed` notes for `typing.{NamedTuple, TypedDict}` (#139298)
Rok Mandeljc [Wed, 24 Sep 2025 10:57:00 +0000 (12:57 +0200)]
gh-139231: Fix estimation of available stack size for recursion limit on macOS (GH-139232)
Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size.
Bénédikt Tran [Wed, 24 Sep 2025 09:25:56 +0000 (11:25 +0200)]
gh-133644: remove `PyWeakref_GetObject` and `PyWeakref_GET_OBJECT` (GH-133657)
Stan Ulbrych [Wed, 24 Sep 2025 08:38:57 +0000 (09:38 +0100)]
gh-83336: Add alias for consistency to `utf-8-sig` (#136530)
Closes #83336
Donghee Na [Wed, 24 Sep 2025 05:19:17 +0000 (14:19 +0900)]
gh-133171: Re-enable JUMP_BACKWARD to free-threading build (gh-137800)
Tian Gao [Wed, 24 Sep 2025 03:46:05 +0000 (05:46 +0200)]
gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (#139185)
Barney Gale [Wed, 24 Sep 2025 01:52:24 +0000 (02:52 +0100)]
GH-139174: Prepare `pathlib.Path.info` for new methods (#139175)
Merge `_WindowsPathInfo` and `_PosixPathInfo` classes into a new
`_StatResultInfo` class. On Windows, this means relying on `os.stat()`
rather than `os.path.isfile()` and friends, which is a little slower. But
there's value in making the code easier to maintain, and we're going to
need the stat result for implementing `size()`, `mode()` etc.
Also move the classes from `pathlib._os` to `pathlib` proper.
Serhiy Storchaka [Tue, 23 Sep 2025 18:31:42 +0000 (21:31 +0300)]
gh-67795: Accept any real numbers as timestamp and timeout (GH-139224)
Functions that take timestamp or timeout arguments now accept any
real numbers (such as Decimal and Fraction), not only integers or floats,
although this does not improve precision.
Dave Peck [Tue, 23 Sep 2025 18:25:51 +0000 (11:25 -0700)]
gh-138558: Improve handling of Template annotations in annotationlib (#139072)
Victor Stinner [Tue, 23 Sep 2025 17:20:59 +0000 (19:20 +0200)]
gh-74857, PEP 538: Coerce POSIX locale to UTF-8 based locale (#139238)
Russell Keith-Magee [Tue, 23 Sep 2025 16:56:14 +0000 (17:56 +0100)]
gh-136744: Remove a redundant test skip (#139267)
Remove a redundant test skip.
Victor Stinner [Tue, 23 Sep 2025 15:29:55 +0000 (17:29 +0200)]
gh-129813, PEP 782: Remove the private _PyBytesWriter API (#139264)
It is now replaced with the new public PyBytesWriter API (PEP 782).
Serhiy Storchaka [Tue, 23 Sep 2025 15:11:50 +0000 (18:11 +0300)]
gh-130567: Fix possible crash in locale.strxfrm() (GH-138940)
On some macOS versions there was an off-by-one error in wcsxfrm() which
caused writing past the end of the array if its size was not calculated
by running wcsxfrm() first.
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Peter Bierma [Tue, 23 Sep 2025 14:09:19 +0000 (10:09 -0400)]
gh-126016: Fix flaky test by allowing the SIGINT return code (GH-139219)
Victor Stinner [Tue, 23 Sep 2025 14:09:01 +0000 (16:09 +0200)]
gh-139208: Fix regrtest --fast-ci --verbose (#139240)
Don't ignore the --verbose option anymore.
Mark Shannon [Tue, 23 Sep 2025 13:47:27 +0000 (14:47 +0100)]
GH-137573: Add test to check that the margin used for overflow protection is larger than the stack space used by the interpreter (GH-137724)
Victor Stinner [Tue, 23 Sep 2025 09:47:09 +0000 (11:47 +0200)]
gh-129813, PEP 782: Use PyBytesWriter in utf8_encoder() (#138874)
Replace the private _PyBytesWriter API with the new public
PyBytesWriter API in utf8_encoder() and unicode_encode_ucs1().
Victor Stinner [Mon, 22 Sep 2025 21:46:19 +0000 (23:46 +0200)]
gh-139156: Use PyBytesWriter in PyUnicode_AsRawUnicodeEscapeString() (#139250)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Victor Stinner [Mon, 22 Sep 2025 21:36:05 +0000 (23:36 +0200)]
gh-139156: Use PyBytesWriter in UTF-16 encoder (#139233)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Victor Stinner [Mon, 22 Sep 2025 21:22:27 +0000 (23:22 +0200)]
gh-139156: Use PyBytesWriter in PyUnicode_AsUnicodeEscapeString() (#139249)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Victor Stinner [Mon, 22 Sep 2025 20:49:25 +0000 (22:49 +0200)]
gh-139156: Use PyBytesWriter in the UTF-7 encoder (#139248)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Victor Stinner [Mon, 22 Sep 2025 20:05:35 +0000 (22:05 +0200)]
gh-139156: Use PyBytesWriter in UTF-32 encoder (#139157)
Replace PyBytes_FromStringAndSize() and _PyBytes_Resize() with the
PyBytesWriter API.
Savannah Bailey [Mon, 22 Sep 2025 16:34:02 +0000 (17:34 +0100)]
GH-139040: Add Dev Container instructions in JIT README (#139041)
Russell Keith-Magee [Mon, 22 Sep 2025 14:26:13 +0000 (15:26 +0100)]
gh-136744: Remove unnecessary chmod from pydoc.apropos() test. (GH-136746)
Remove unnecessary chmod from pydoc.apropos() test.
Katie Gardner [Mon, 22 Sep 2025 13:19:37 +0000 (14:19 +0100)]
gh-95953: Add a css class to changed lines of difflib.HtmlDiff make_table (#139226)
Savannah Bailey [Mon, 22 Sep 2025 12:21:57 +0000 (13:21 +0100)]
GH-137218: Fix Makefile to handle FreeBSD (fix for JIT stencil changes) (GH-139170)
Stan Ulbrych [Mon, 22 Sep 2025 11:25:39 +0000 (12:25 +0100)]
`Doc/library/zoneinfo.rst`: Fix typo (#139190)
Removes duplicated wording.
Petr Viktorin [Mon, 22 Sep 2025 11:22:27 +0000 (13:22 +0200)]
gh-136003: Close file descriptors in test (GH-139225)
This fixes file descriptor leaks introduced in GH-136004
Jason R. Coombs [Mon, 22 Sep 2025 00:53:57 +0000 (20:53 -0400)]
gh-138313: Suppress ResourceWarnings and restore skipped test (#138597)
Stan Ulbrych [Sun, 21 Sep 2025 18:57:13 +0000 (19:57 +0100)]
`Doc/library/os.rst`: Remove spurious parenthesis (GH-139205)
Pablo Galindo Salgado [Sun, 21 Sep 2025 18:39:07 +0000 (19:39 +0100)]
gh-138709: Supress stdout/stderr during test_sampling_profiler tests (#139212)
Pablo Galindo Salgado [Sun, 21 Sep 2025 17:32:03 +0000 (18:32 +0100)]
gh-138709: Fix race condition in test_external_inspection (#139209)
Fix race condition in test_external_inspection thread status tests
The tests test_thread_status_detection and test_thread_status_gil_detection
had a race condition where the test could sample thread status between when
the sleeper thread sends its "ready" message and when it actually calls
time.sleep(). This caused intermittent test failures where the sleeper
thread would show as running (status=0) instead of idle (status=1 or 2).
The fix moves the thread status collection inside the retry loop and
specifically waits for the expected thread states before proceeding with
assertions. The retry loop now continues until:
- The sleeper thread shows as idle (status=1 for CPU mode, status=2 for GIL mode)
- The busy thread shows as running (status=0)
- Both thread IDs are found in the status collection
This ensures the test waits for threads to settle into their expected states
before making assertions, eliminating the race condition.
sobolevn [Sun, 21 Sep 2025 11:44:17 +0000 (14:44 +0300)]
Docs: add missing tools to `Tools/README` (#139150)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
AN Long [Sun, 21 Sep 2025 10:54:30 +0000 (19:54 +0900)]
gh-138092: Correct the documented signature of ``mmap.flush`` (#138671)
sobolevn [Sun, 21 Sep 2025 10:49:49 +0000 (13:49 +0300)]
Make sure the ``:keyword:`` role works for ``case`` (#138878)
Stan Ulbrych [Sun, 21 Sep 2025 10:49:46 +0000 (11:49 +0100)]
Link to Discourse in ``.github/CONTRIBUTING.rst`` (#138996)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>