]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Sat, 9 Aug 2025 18:25:49 +0000 (21:25 +0300)]
gh-136571: Convert more code in datetime to Argument Clinic (GH-136573)
This adds signatures for some classes and methods.
date.fromisocalendar() can now raise OverflowError for arguments that
don't fit in the C int.
Mark Shannon [Sat, 9 Aug 2025 14:41:28 +0000 (15:41 +0100)]
GH-132532: Add new DSL macros to better declare semantics of exits at ends of instructions/uops. (GH-137098)
Sergey Miryanov [Sat, 9 Aug 2025 12:32:45 +0000 (05:32 -0700)]
gh-137562: Remove reference for GC_REACHABLE in comment (GH-137563)
GC_REACHABLE is obsolete
Alexander Nordin [Sat, 9 Aug 2025 05:29:51 +0000 (22:29 -0700)]
gh-137026: Add an explainer guide for asyncio (GH-137215)
* - Add an explainer guide (aka HOWTO, not how-to) for asyncio.
* Fix linter errors.
* - Enforce max line length of roughly 79 chars.
- Start sentences on new lines to minimize disruption of diffs.
* Add reference to subinterpreters.
* - Significantly reduce article size. Remove both example sections & "Which concurrency do I want" section.
* Align section-header lengths with section names.
* - Remove reference to deleted section.
* - Fix a variety of rote style guide items like title-alignment, use of ie and $, and so forth.
- Add links to other parts of the docs for keywords and objects like await, coro, task, future, etc.
* - One last title alignment.
* - Style nit.
* - Rework a variety of I statements.
* Lint fix.
* - Firm up commentary on yield from in corotuines.
* Update language comparing await and yield from.
* - Remove await-ing Tasks and futures section
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* - Address comments related to style & writing flow.
* per-thread event loop note.
* Add section describing coroutines roots in generators.
* Phrasing tweak.
* Use asyncio.create_task instead of asyncio.Task
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* small phrasing.
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* phrasing nit.
* style nits
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* phrasing nit
* Fix misnaming of async generator.
* phrasing nits.
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* consistent spacing
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* phrasing nits
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* add conclusion
* nits
* - Variety of style & grammar improvements thanks to ZeroIntensity's comments.
* - Make all directives start with a 3 space indent. Then 4 thereafter.
* - Use :linenos: instead of manually writing the line numbers.
* - Fix label typo for article.
* fix label link.
* Apply suggestions from code review
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* - introduce async-sleep name
* Phrasing
* nit
* ungendered octopus
* teammates
* jobs
* rework fella to penguin
* - remove byline; add seealso
* Change ref from asyncio to use seealso block.
* Remove typehints. Fix indentation in one code example.
* Slight rephrase for clarity.
* Make references point to asyncio. Wrap some long lines.
* - Variety of style/phrasing improvements based on PR feedback.
* phrasing.
* phrasing nit.
* Apply suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* nit
* Apply suggestions from code review
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* fix backticks.
* nits
* nit
* add section on asyncio.run
* title change under the hood.
* modify task coro example.
* howtos article link.
* prefer await without backticks.
* phrasing tweak.
* Rework phrasing around how await tasks pauses and returns control in the await section.
* move code block to beforfe explanation in coroutine under the hood.
* phrasing.
* link to yield from.
* style nits
* nit
* - Modify language re: event-loop cycling endlessly.
- Discuss why await was designed to not yield for coros.
* - Add a note about debug=True on asyncio.run to await coro section.
* clarity nit
* - Add two other references in seealso block.
* nit
* Language simplification
* Apply suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* nit
* grammar fix.
* fix
* worker bees
* rework event loop paragraph to significantly deemphasize queues
* remove all references to queue besides the initial analogy.
* add note about garbage collection of tasks
* add practical note re: garbage collection
* phrasing nits
* re arrange note on task gc.
* line wrap nit
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* link to debug mode docs.
* readd part2 prefix.
* simplify title.
* fix titles. tihnk I messed this up earlier.
* avoid idiom in title.
* fix titles once agian.
* Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* rework task gc example.
* phrasing tweak.
* tewak.
* nit
* nit
* nit
* nit
---------
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Nick Burns [Fri, 8 Aug 2025 19:07:15 +0000 (12:07 -0700)]
gh-92936: allow double quote in cookie values (#113663)
* allow double quote in cookie values
* Update Lib/test/test_http_cookies.py
Co-authored-by: Senthil Kumaran <senthil@python.org>
Douglas Thor [Fri, 8 Aug 2025 15:34:02 +0000 (08:34 -0700)]
gh-133722: Add Difflib theme to `_colorize` and 'color' option to `difflib.unified_diff` (#133725)
Tom Forbes [Fri, 8 Aug 2025 14:00:18 +0000 (15:00 +0100)]
Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552)
Sergey B Kirpichev [Fri, 8 Aug 2025 10:36:42 +0000 (13:36 +0300)]
gh-128813: deprecate cval field of the PyComplexObject struct (#137271)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
sobolevn [Fri, 8 Aug 2025 07:14:51 +0000 (10:14 +0300)]
Bump mypy to 1.17.1 (#137542)
Adorilson Bezerra [Fri, 8 Aug 2025 02:04:59 +0000 (03:04 +0100)]
[Doc] Remove unnecessary quotes from typing module (#137207)
* gh-106320: Remove private _PyInterpreterState functions (#106335)
Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.
Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
* Doc: minor change
* Revert "Doc: minor change"
This reverts commit
ebfa0937c2caf0110ab1540f14956d56fe925092 .
* [Doc] Remove unnecessary quotes from typing (See Also section)
* [Doc] Remove unnecessary quotes from typing
---------
Co-authored-by: Victor Stinner <vstinner@python.org>
Adam Turner [Fri, 8 Aug 2025 01:32:20 +0000 (03:32 +0200)]
GH-136155: Fail the EPUB check on fatal errors (#137351)
Sergey Miryanov [Fri, 8 Aug 2025 00:45:33 +0000 (17:45 -0700)]
GH-135552: Add tests to check weakref clearing (GH-136304)
These are tests to ensure behaviour introduced by GH-136189 is working as expected.
Co-authored-by: Mikhail Borisov <43937008+fxeqxmulfx@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Sergey B Kirpichev [Thu, 7 Aug 2025 23:43:18 +0000 (02:43 +0300)]
gh-130102: drop "require numeric arguments" from pow() docs (#137456)
Co-authored-by: Senthil Kumaran <senthil@python.org>
Neil Schemenauer [Thu, 7 Aug 2025 23:32:17 +0000 (16:32 -0700)]
GH-135552: Make the GC clear weakrefs later (GH-136189)
Fix a bug caused by the garbage collector clearing weakrefs too early. The
weakrefs in the ``tp_subclasses`` dictionary are needed in order to correctly
invalidate type caches (for example, by calling ``PyType_Modified()``).
Clearing weakrefs before calling finalizers causes the caches to not be
correctly invalidated. That can cause crashes since the caches can refer to
invalid objects. Defer the clearing of weakrefs without callbacks until after
finalizers are executed.
Bénédikt Tran [Thu, 7 Aug 2025 22:31:56 +0000 (00:31 +0200)]
gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (#137413)
fix `default_builtin_hashes` in test_hashlib
Dino Viehland [Thu, 7 Aug 2025 21:54:12 +0000 (14:54 -0700)]
gh-137291: Support perf profiler with an evaluation hook (#137292)
Support perf profiler with an evaluation hook
Abhinav Upadhyay [Thu, 7 Aug 2025 20:31:11 +0000 (02:01 +0530)]
GH-119085: Move comment in Python/gc.c to correct place.
In GH-116206, the comment about moving reachable objects to next generation
got moved from its original place to a place where there is no code below
it. Put the comment back to where the actual movement of reachable objects
happens.
Sebastien Williams-Wynn [Thu, 7 Aug 2025 19:36:05 +0000 (20:36 +0100)]
gh-137526: Fix broken link to drdobbs journal in difflib.rst (#137527)
Ee Durbin [Thu, 7 Aug 2025 19:35:39 +0000 (15:35 -0400)]
add floss.fund manifest provenance (#137529)
ref: https://fundingjson.org/#wellknown
maurycy [Thu, 7 Aug 2025 15:38:14 +0000 (17:38 +0200)]
Remove redundant assignment in asyncio.streams.StreamReaderProtocol.connection_lost() (GH-137524)
The _stream_writer attribute was removed in
a355f60 (gh-114914).
Peter Bierma [Thu, 7 Aug 2025 15:24:50 +0000 (11:24 -0400)]
gh-137514: Add a free-threading wrapper for mutexes (GH-137515)
Add `FT_MUTEX_LOCK`/`FT_MUTEX_UNLOCK`, which call `PyMutex_Lock` and `PyMutex_Unlock` on the free-threaded build, and no-op otherwise.
Nice Zombies [Thu, 7 Aug 2025 15:21:56 +0000 (17:21 +0200)]
gh-135336: Add fast path to json string encoding (#133239)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Bartosz Sławecki [Thu, 7 Aug 2025 13:50:49 +0000 (15:50 +0200)]
gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441)
Switch from `_testcapi` to `_testinternalcapi`.
Serhiy Storchaka [Thu, 7 Aug 2025 08:06:37 +0000 (11:06 +0300)]
gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338)
* Return large limit values as positive integers instead of negative integers
in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
for limits in resource.setrlimit().
Guilherme Leobas [Thu, 7 Aug 2025 06:10:56 +0000 (03:10 -0300)]
gh-137463: Update `validate_abstract_methods` in `test_collections.py` (#137464)
Update `validate_abstract_methods` in `test_collections.py`
The test for missing abstract methods in `validate_abstract_methods` incorrectly attempted to instantiate the generated class `C` with an argument (`C(name)`), which always raises a `TypeError: C() takes no arguments`. Although the test originally passes, it passes for the wrong reason.
This change makes the test correctly validate the enforcement of abstract methods in ABCs.
tobiasjcat [Thu, 7 Aug 2025 05:41:16 +0000 (22:41 -0700)]
gh-137499: Fixed dead link to NIST website (#137500)
Isuru Fernando [Wed, 6 Aug 2025 22:05:41 +0000 (17:05 -0500)]
gh-84683: Check `<prefix>/share/zoneinfo` for zoneinfo files on Windows (GH-28495)
Greg Stein [Wed, 6 Aug 2025 21:58:24 +0000 (16:58 -0500)]
Docs: Small clarity change for ``except*`` (#121073)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Mendel Feygelson [Wed, 6 Aug 2025 21:51:59 +0000 (16:51 -0500)]
Docs: Use the correct example module in warnings.rst (#137402)
Daniele Parmeggiani [Wed, 6 Aug 2025 20:42:34 +0000 (22:42 +0200)]
gh-134861: Add 🍌SV output format to ``python -m asyncio ps`` (#137486)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Daniele Parmeggiani [Wed, 6 Aug 2025 20:10:40 +0000 (22:10 +0200)]
gh-134861: Add CSV output format to ``python -m asyncio ps`` (#134862)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Brett Cannon [Wed, 6 Aug 2025 19:28:54 +0000 (12:28 -0700)]
GH-137484: Have `Tools/wasm/wasi` use the build triple instead of "build" (GH-37485)
This should help prevent issuse where something like a container is used to do one build and then someone tries to build again locally.
Adam Turner [Wed, 6 Aug 2025 18:53:08 +0000 (20:53 +0200)]
Further CODEOWNERS listings for Adam Turner (#137483)
Barney Gale [Wed, 6 Aug 2025 16:13:58 +0000 (17:13 +0100)]
GH-137466: Remove deprecated and undocumented `glob.glob0()` and `glob1()` (#137467)
Alexander Urieles [Wed, 6 Aug 2025 12:59:22 +0000 (14:59 +0200)]
gh-75989: TarFile.extractall and TarFile.extract now overwrite symlinks when extracting hardlinks (GH-137316)
Victor Stinner [Wed, 6 Aug 2025 12:35:27 +0000 (14:35 +0200)]
gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (#137415)
Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
Victor Stinner [Wed, 6 Aug 2025 12:34:56 +0000 (14:34 +0200)]
Use PyInitConfig API in _freeze_module.c (#137423)
Victor Stinner [Wed, 6 Aug 2025 12:33:28 +0000 (14:33 +0200)]
Use PyConfig_Get() in frozenmain.c (#137421)
Replace private _Py_GetConfig() with public PyConfig_Get().
Remove also explicit PyRuntime initialization, it's not needed.
Ned Deily [Wed, 6 Aug 2025 11:21:30 +0000 (07:21 -0400)]
gh-137450: macOS installer shell path management improvements (#137451)
Separate the installer `Shell profile updater` postinstall script from the `Update Shell Profile.command` to enable more robust error handling.
Erlend E. Aasland [Wed, 6 Aug 2025 08:47:18 +0000 (10:47 +0200)]
gh-133390: Amend gh-135659 (sqlite3 docs update) (#137447)
* gh-133390: Amend gh-135659 (sqlite3 docs update)
Furkan Onder [Wed, 6 Aug 2025 07:19:56 +0000 (07:19 +0000)]
gh-137056: Fix DTrace build support on NetBSD (GH-137057)
Sina Zel taat [Tue, 5 Aug 2025 20:52:33 +0000 (22:52 +0200)]
gh-136823: Update documentation on excluded headers in Python.h (#136824)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Gregory P. Smith [Tue, 5 Aug 2025 20:50:51 +0000 (13:50 -0700)]
gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135)
* Update SQLite to 3.50.3 for binary releases.
* macOS and Windows news entries. what about Android?
* update sbom hash
* newline fix via regen-sbom
* news wording
* Update SQLite to 3.50.4 for binary releases.
* update 3.50.4.0.tar.gz hash in sbom & regen-sbom to fix whitespace
* Postpone to a separate PR the build-installer changes to support additional hash types
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ned Deily <nad@python.org>
Ned Batchelder [Tue, 5 Aug 2025 20:30:38 +0000 (16:30 -0400)]
Docs: add dunder and walrus to the glossary (#137430)
Adam Turner [Tue, 5 Aug 2025 20:14:31 +0000 (22:14 +0200)]
GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (#137393)
Zachary Ware [Tue, 5 Aug 2025 19:44:27 +0000 (14:44 -0500)]
Fix buildbot release status link in CONTRIBUTING.rst (GH-137429)
The existing link works, but includes the legacy `/all` part of the path
which causes a scary-looking banner about a misconfiguration on the
`Home` page when in reality it's the link that includes a deprecated path.
Irit Katriel [Tue, 5 Aug 2025 18:25:57 +0000 (19:25 +0100)]
gh-137288: Fix bug where boolean expressions are not associated with the correct exception handler (#137310)
Stan Ulbrych [Tue, 5 Aug 2025 14:55:05 +0000 (16:55 +0200)]
gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034)
Sam Gross [Tue, 5 Aug 2025 13:32:22 +0000 (09:32 -0400)]
gh-137238: Fix data race in `_Py_slot_tp_getattr_hook` (gh-137240)
Replacing the slot isn't thread-safe if the GIL is disabled. Don't
require that the slot has been replaced when specializing.
naweiss [Tue, 5 Aug 2025 10:16:14 +0000 (13:16 +0300)]
gh-107545: Fix misleading setsockopt() error messages (GH-107546)
Furkan Onder [Tue, 5 Aug 2025 08:32:21 +0000 (08:32 +0000)]
gh-137397: Skip test_os_open on NetBSD due to indefinite hang (#137398)
Bénédikt Tran [Tue, 5 Aug 2025 07:50:34 +0000 (09:50 +0200)]
gh-136306: fix `test_ssl.ContextTests.test_set_groups` on FIPS builds (#137405)
X25519 is not a valid curve if OpenSSL is built with FIPS mode,
and ignoring unknown groups in `SSL_CTX_set1_groups_list()`
is only supported since OpenSSL 3.3, so we use two curves that
are known to be FIPS-compliant, namely P-256 and P-384.
markmcclain [Mon, 4 Aug 2025 22:08:26 +0000 (18:08 -0400)]
gh-137390: Add missing line continuation character in configure.ac (#137391)
Adam Turner [Mon, 4 Aug 2025 21:45:51 +0000 (23:45 +0200)]
gh-132661: PEP 750 documentation: second pass (#137020)
alexey semenyuk [Mon, 4 Aug 2025 16:44:29 +0000 (21:44 +0500)]
gh-137128: Remove outdated todo about coro_fns in asyncio (#137385)
Victor Stinner [Mon, 4 Aug 2025 14:48:24 +0000 (16:48 +0200)]
gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379)
Peter Bierma [Mon, 4 Aug 2025 14:35:00 +0000 (10:35 -0400)]
gh-134170: Add colorization to unraisable exceptions (#134183)
Default implementation of sys.unraisablehook() now uses traceback._print_exception_bltin() to print exceptions with colorized text.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Petr Viktorin [Mon, 4 Aug 2025 13:40:42 +0000 (15:40 +0200)]
gh-136520: Clarify docs for _pack_ & _align_ (GH-137036)
Move docs to the reference section & reduce the “tutorial” part to a quick intro & link.
Clarify what values are accepted.
Add macro/attribute equivalents.
Discourage _align_ values that aren't powers of two.
Sergey B Kirpichev [Mon, 4 Aug 2025 13:30:29 +0000 (16:30 +0300)]
gh-137368: document __index__() support for PyLong_AsInt32/64() (GH-137369)
Alex Waygood [Mon, 4 Aug 2025 10:29:14 +0000 (11:29 +0100)]
Remove Alex Waygood as a codeowner for pre-commit config (#137372)
Alexander Urieles [Mon, 4 Aug 2025 02:53:01 +0000 (04:53 +0200)]
gh-81325: Support path-like objects with streaming TarFile (#137188)
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Sergey B Kirpichev [Mon, 4 Aug 2025 02:15:59 +0000 (05:15 +0300)]
gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Richard Si [Mon, 4 Aug 2025 02:00:17 +0000 (22:00 -0400)]
gh-137257: Upgrade bundled pip to 25.2 (GH-137258)
Rogdham [Mon, 4 Aug 2025 01:36:12 +0000 (03:36 +0200)]
gh-132983: Use ``Py_UNREACHABLE`` in ``_zstd_load_impl()`` (#137320)
Kliment Lamonov [Sun, 3 Aug 2025 18:43:13 +0000 (21:43 +0300)]
gh-136567: Add information about lost prefixes to `Tools/cases_generator/interpreter_definition.md` (#136780)
Adam Turner [Sun, 3 Aug 2025 18:32:46 +0000 (20:32 +0200)]
GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (#137348)
Serhiy Storchaka [Sun, 3 Aug 2025 16:41:12 +0000 (19:41 +0300)]
gh-137341: Remove more word duplications (GH-137342)
Pablo Galindo Salgado [Sun, 3 Aug 2025 16:10:51 +0000 (17:10 +0100)]
gh-137314: Fix incorrect treatment of format specs in raw fstrings (#137328)
Rogdham [Sun, 3 Aug 2025 15:04:45 +0000 (17:04 +0200)]
gh-132983: Fix docstrings in ``ZstdDict`` (#137321)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
sobolevn [Sun, 3 Aug 2025 07:40:55 +0000 (10:40 +0300)]
gh-137191: Fix how type parameters are collected from `Protocol` and `Generic` bases with parameters (#137281)
Mark Shannon [Sat, 2 Aug 2025 15:49:34 +0000 (16:49 +0100)]
GH-137276: Don't mark uop as escaping if the escaping call is on an exit branch (GH-137277)
Maciej Olko [Sat, 2 Aug 2025 14:37:25 +0000 (16:37 +0200)]
Remove incorrect feature coverage comment from msgfmt script's docstring (#112862)
Remove feature coverage comment from msgfmt script's docstring
msgfmt handles plural forms since
cb081b83 .
The comment was incorrectly applied in
637a33b -- original patch was from before the
cb081b83 commit.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Inada Naoki [Sat, 2 Aug 2025 14:32:18 +0000 (23:32 +0900)]
Doc: remove unused images (#137323)
sobolevn [Sat, 2 Aug 2025 11:57:01 +0000 (14:57 +0300)]
gh-137308: Replace a single docstring with `pass` in `-OO` mode (#137318)
This is required so we would never have empty node bodies.
Refs #130087
Bénédikt Tran [Fri, 1 Aug 2025 17:45:40 +0000 (19:45 +0200)]
gh-131876: Revert "gh-131876: extract `_hashlib` helpers into a separate directory (#136995) (#137307)
Revert "gh-131876: extract `_hashlib` helpers into a separate directory (#136995)"
This reverts commit
45138d35843297395b2d646f5391be108243957a .
Mark Shannon [Fri, 1 Aug 2025 15:26:07 +0000 (16:26 +0100)]
GH-136410: Faster side exits by using a cold exit stub (GH-136411)
Serhiy Storchaka [Fri, 1 Aug 2025 14:43:53 +0000 (17:43 +0300)]
gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH-137300)
It happened when there were at least 16 characters after dot in the
locale name.
Kumar Aditya [Fri, 1 Aug 2025 13:40:40 +0000 (19:10 +0530)]
gh-133467: fix data race in `type_set_name` (#137302)
Fix data race in `type_set_name` by assigning name under stop the world pause making it thread safe in free-threading.
Sergey B Kirpichev [Fri, 1 Aug 2025 07:40:12 +0000 (10:40 +0300)]
gh-128813: soft-deprecate _Py_c_*() functions (GH-137261)
Henry Schreiner [Thu, 31 Jul 2025 16:17:27 +0000 (12:17 -0400)]
gh-137282: Fix `TypeError` in tab completion and `dir()` of `concurrent.futures` (GH-137214)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Xuanteng Huang [Thu, 31 Jul 2025 13:22:22 +0000 (21:22 +0800)]
gh-137200: support frame lineno setter with `BRANCH_LEFT` and `BRANCH_RIGHT` events (GH-137229)
Dzmitry Plashchynski [Thu, 31 Jul 2025 12:06:33 +0000 (15:06 +0300)]
gh-131146: Fix month names in a "standalone form" in calendar module (GH-131147)
The calendar module displays month names in some locales using the genitive case.
This is grammatically incorrect, as the nominative case should be used when the month
is named by itself. To address this issue, this change introduces new lists
`standalone_month_name` and `standalone_month_abbr` that contain month names in
the nominative case -- or more generally, in the form that should be used to
name the month itself, rather than form a date.
The module now uses the `%OB` format specifier to get month names in this form
where available.
Jeong, YunWon [Thu, 31 Jul 2025 11:22:11 +0000 (20:22 +0900)]
gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195)
Krzysztof Magusiak [Thu, 31 Jul 2025 09:55:00 +0000 (11:55 +0200)]
gh-124503: Optimize ast.literal_eval() for small input (GH-137010)
The implementation does not create anymore local functions which reduces
the overhead for small inputs. Some other calls are inlined into a
single `_convert_literal` function.
We have a gain of 10-20% for small inputs and only 1-2% for bigger
inputs.
adam j hartz [Thu, 31 Jul 2025 08:19:52 +0000 (04:19 -0400)]
gh-137025: Include ``python.worker.mjs`` in the Emscripten Web Example (#137236)
Victorien [Thu, 31 Jul 2025 03:21:56 +0000 (05:21 +0200)]
gh-119180: Refer to `annotationlib.get_annotations()` in `typing.get_type_hints()` documentation (#137247)
Brandt Bucher [Wed, 30 Jul 2025 22:48:18 +0000 (15:48 -0700)]
GH-134291: Support older macOS deployment targets for JIT builds (GH-137211)
Stan Ulbrych [Wed, 30 Jul 2025 21:12:14 +0000 (23:12 +0200)]
gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
Raymond Hettinger [Wed, 30 Jul 2025 20:53:33 +0000 (15:53 -0500)]
Add example of min-heap and max-heap working together (gh-137251)
Brett Cannon [Wed, 30 Jul 2025 19:13:37 +0000 (12:13 -0700)]
GH-137248: Add a `--logdir` option to `Tools/wasm/wasi` (GH-137249)
Brett Cannon [Wed, 30 Jul 2025 18:46:24 +0000 (11:46 -0700)]
GH-137243: Have `Tools/wasm/wasi` detect WASI SDK installs in `/opt` when the release tarball is extracted (GH-137244)
Justin Bronder [Wed, 30 Jul 2025 18:11:28 +0000 (14:11 -0400)]
gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (#135445)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Serhiy Storchaka [Wed, 30 Jul 2025 07:19:19 +0000 (10:19 +0300)]
gh-71189: Support all-but-last mode in os.path.realpath() (GH-117562)
Neil Schemenauer [Wed, 30 Jul 2025 02:44:10 +0000 (19:44 -0700)]
GH-116738: document thread-safety of bisect (GH-136555)
Sam Gross [Tue, 29 Jul 2025 18:25:50 +0000 (14:25 -0400)]
gh-137179: Fix flaky test_history_survive_crash test (gh-137180)
Kill the REPL subprocess once it prints the output from the command
immediately before the `time.sleep()`.
Akuli [Tue, 29 Jul 2025 15:23:44 +0000 (18:23 +0300)]
gh-137183: Document that `array.array` typecode `w` is new in 3.13 (GH-137184)
Sam Gross [Tue, 29 Jul 2025 14:25:32 +0000 (10:25 -0400)]
gh-137185: Fix `_Py_DumpStack()` async signal safety (gh-137187)
Call backtrace() once when installing the signal handler to ensure that
libgcc is dynamically loaded outside the signal handler.
This fixes a "signal-unsafe call inside of a signal" TSan error from
test_faulthandler.test_enable_fd.
Hood Chatham [Tue, 29 Jul 2025 00:42:07 +0000 (02:42 +0200)]
Add a What's New entry for Emscripten (#137035)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Jelle Zijlstra [Mon, 28 Jul 2025 19:35:40 +0000 (12:35 -0700)]
gh-136843: Document how multiple inheritance works (#136844)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
AN Long [Mon, 28 Jul 2025 19:19:01 +0000 (04:19 +0900)]
gh-136586: Improve winreg's module docstring (GH-136587)