]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Chu [Thu, 10 Apr 2025 11:57:37 +0000 (19:57 +0800)]
Fix a typo in Python/pylifecycle.c (#132350)
Tomas R. [Thu, 10 Apr 2025 11:56:21 +0000 (13:56 +0200)]
gh-130320: gettext: Test fallback translations (GH-130321)
Liam DeVoe [Thu, 10 Apr 2025 11:51:20 +0000 (07:51 -0400)]
Docs: Add a missing trailing full stop (#130561)
sobolevn [Thu, 10 Apr 2025 11:30:58 +0000 (14:30 +0300)]
gh-132316: Require `socket` and `GITHUB_TOKEN` env to use `GitHubArtifactDatabase` (#132348)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
180909 [Thu, 10 Apr 2025 11:21:32 +0000 (19:21 +0800)]
gh-72631: Fix wrong documentation for GzipFile.peek (#29820)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Tomas R. [Thu, 10 Apr 2025 11:06:40 +0000 (13:06 +0200)]
gh-130453: pygettext: Allow specifying multiple keywords with the same function name (GH-131380)
mpage [Thu, 10 Apr 2025 08:41:15 +0000 (01:41 -0700)]
gh-132336: Mark a few "slow path" functions used by the interpreter loop as noinline (#132337)
Mark a few functions used by the interpreter loop as noinline
These are all the slow path and should not be inlined into the interpreter
loop. Unfortunately, they end up being inlined with LTO and the current PGO
task.
Jo [Thu, 10 Apr 2025 04:19:01 +0000 (12:19 +0800)]
docs: Fix typo in context_aware_warnings flag (#132340)
Adam Turner [Thu, 10 Apr 2025 00:51:56 +0000 (01:51 +0100)]
GH-132330: Synchronise ``Doc/includes/typestruct.h`` with ``PyTypeObject`` (#132332)
Neil Schemenauer [Wed, 9 Apr 2025 23:18:54 +0000 (16:18 -0700)]
gh-128384: Use a context variable for warnings.catch_warnings (gh-130010)
Make `warnings.catch_warnings()` use a context variable for holding
the warning filtering state if the `sys.flags.context_aware_warnings`
flag is set to true. This makes using the context manager thread-safe in
multi-threaded programs.
Add the `sys.flags.thread_inherit_context` flag. If true, starting a new
thread with `threading.Thread` will use a copy of the context
from the caller of `Thread.start()`.
Both these flags are set to true by default for the free-threaded build
and false for the default build.
Move the Python implementation of warnings.py into _py_warnings.py.
Make _contextvars a builtin module.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Stefano Rivera [Wed, 9 Apr 2025 22:41:16 +0000 (15:41 -0700)]
Escape hyphens in manpage (#132291)
Brandt Bucher [Wed, 9 Apr 2025 21:32:21 +0000 (14:32 -0700)]
GH-131798: Remove JIT guards for dict, frozenset, list, set, and tuple (GH-132289)
Kumar Aditya [Wed, 9 Apr 2025 18:18:40 +0000 (23:48 +0530)]
gh-131336: fix thread safety for ctypes functions (#132232)
Karolina Surma [Wed, 9 Apr 2025 18:14:57 +0000 (20:14 +0200)]
gh-130587: Invoke regen-token rst with rstfile as an argument (#132304)
Serhiy Storchaka [Wed, 9 Apr 2025 18:10:02 +0000 (21:10 +0300)]
gh-132305: Make Argument Clinic code compatible with Python 3.10 (#132306)
Chu [Wed, 9 Apr 2025 17:47:52 +0000 (01:47 +0800)]
Remove a duplicate word in the Makefile (#132301)
sobolevn [Wed, 9 Apr 2025 17:36:08 +0000 (20:36 +0300)]
gh-132285: Fix that `__annotate__` is not deleted when `__annotations__` is deleted (#132286)
mpage [Wed, 9 Apr 2025 17:34:12 +0000 (10:34 -0700)]
gh-129987: Disable GCC SLP autovectorization for the interpreter loop on x86-64 (#132295)
The SLP autovectorizer can cause poor code generation for opcode dispatch, negating any benefit we get from vectorization elsewhere in the interpreter loop.
h-vetinari [Wed, 9 Apr 2025 14:50:38 +0000 (01:50 +1100)]
update comment about LLVM bug relevant for `--with-tail-call-interp` performance (#132297)
Ken Jin [Wed, 9 Apr 2025 14:49:33 +0000 (22:49 +0800)]
gh-126703: Fix possible use after free in pycfunction freelist (GH-132319)
Serhiy Storchaka [Wed, 9 Apr 2025 10:26:50 +0000 (13:26 +0300)]
gh-131434: Improve error reporting for incorrect format in strptime() (GH-131568)
In particularly, fix regression in detecting stray % at the end of the
format string.
Serhiy Storchaka [Wed, 9 Apr 2025 08:08:04 +0000 (11:08 +0300)]
gh-130631: Make join_header_words() more similar to the original Perl version (GH-130632)
* Always quote strings with non-ASCII characters.
* Allow some non-separator and non-control characters (like "." or "-")
be unquoted.
* Always quote strings that end with "\n".
* Use the fullmatch() method for clarity and optimization.
Łukasz Langa [Tue, 8 Apr 2025 23:01:36 +0000 (01:01 +0200)]
gh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (#132274)
They will be removed in source tarballs so they don't appear
in the SBOM.
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Serhiy Storchaka [Tue, 8 Apr 2025 19:08:00 +0000 (22:08 +0300)]
gh-112068: C API: Add support of nullable arguments in PyArg_Parse (GH-121303)
Cody Maloney [Tue, 8 Apr 2025 17:43:27 +0000 (10:43 -0700)]
gh-132246: Add PEP 688 to C Buffer Protocol docs (#132249)
Tian Gao [Tue, 8 Apr 2025 17:36:47 +0000 (10:36 -0700)]
gh-132250: Clear error in lsprof callback when method descriptor raises an excep… (#132251)
Tian Gao [Tue, 8 Apr 2025 16:19:16 +0000 (09:19 -0700)]
gh-106670: Fix a typo in doc of pdb's exceptions command (#132277)
Nadeshiko Manju [Tue, 8 Apr 2025 16:12:09 +0000 (00:12 +0800)]
GH-131798: Narrow the result of _CONTAINS_OP_DICT to bool in the JIT (GH-132269)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Tomas R. [Tue, 8 Apr 2025 15:22:54 +0000 (17:22 +0200)]
GH-131798: Narrow the result type of _BINARY_OP_SUBSCR_STR_INT to str in the JIT (GH-132153)
Duprat [Tue, 8 Apr 2025 15:11:13 +0000 (17:11 +0200)]
gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (#132129)
Hugo van Kemenade [Tue, 8 Apr 2025 14:08:21 +0000 (17:08 +0300)]
Merge branch 'main' of https://github.com/python/cpython
Hugo van Kemenade [Tue, 8 Apr 2025 14:06:51 +0000 (17:06 +0300)]
Post 3.14.0a7
Bénédikt Tran [Tue, 8 Apr 2025 13:03:43 +0000 (15:03 +0200)]
gh-93096: fix `test_mimetypes.test_invocation_error` tests on iOS ARM64 (#132266)
Serhiy Storchaka [Tue, 8 Apr 2025 11:26:32 +0000 (14:26 +0300)]
gh-50333: Deprecate support of non-tuple sequences in PyArg_ParseTuple() (GH-128374)
Non-tuple sequences are deprecated as argument for the "(items)" format unit
in PyArg_ParseTuple() and other argument parsing functions if items contains
format units which store borrowed buffer or reference (e.g. "s" and "O").
str and bytearray are no longer accepted as valid sequences.
Hugo van Kemenade [Tue, 8 Apr 2025 11:20:32 +0000 (14:20 +0300)]
Python 3.14.0a7
Serhiy Storchaka [Tue, 8 Apr 2025 10:56:42 +0000 (13:56 +0300)]
gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254)
Peter Bierma [Tue, 8 Apr 2025 10:31:43 +0000 (06:31 -0400)]
gh-131998: Fix `NULL` dereference when using an unbound method descriptor in a specialized code path (#132000)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
Bénédikt Tran [Tue, 8 Apr 2025 10:11:25 +0000 (12:11 +0200)]
gh-74598: add `fnmatch.filterfalse` for excluding names matching a patern (#121185)
Adam Turner [Tue, 8 Apr 2025 10:05:48 +0000 (11:05 +0100)]
gh-118761: Optimise import time for ``string`` (#132037)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Bénédikt Tran [Tue, 8 Apr 2025 09:08:59 +0000 (11:08 +0200)]
gh-93096: fix `test_mimetypes.test_guess_type_conflicting_with_mimetypes` (#131408)
Irit Katriel [Tue, 8 Apr 2025 08:50:51 +0000 (09:50 +0100)]
gh-100239: more stats for BINARY_OP/SUBSCR specialization (#132230)
David Brochart [Tue, 8 Apr 2025 08:43:11 +0000 (10:43 +0200)]
Fixed a typo in the documentation (#132005)
gh-132021: Add bool type to the list of allowed JSON key types (#132048)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
sobolevn [Tue, 8 Apr 2025 08:14:12 +0000 (11:14 +0300)]
gh-115942: Add `locked` to several multiprocessing locks (#115944)
Co-authored-by: mpage <mpage@cs.stanford.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Emma Smith [Tue, 8 Apr 2025 07:43:14 +0000 (00:43 -0700)]
gh-84481: Make ZipFile.data_offset more robust (#132178)
Ee Durbin [Tue, 8 Apr 2025 07:37:42 +0000 (03:37 -0400)]
Add psfhosted Plausible instance to analytics (#132252)
Inada Naoki [Tue, 8 Apr 2025 00:23:48 +0000 (09:23 +0900)]
enum: remove unused function (#132044)
Stan Ulbrych [Mon, 7 Apr 2025 20:58:50 +0000 (21:58 +0100)]
gh-130521: Add Open Graph meta tags to template pages (#130523)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Gregory P. Smith [Mon, 7 Apr 2025 20:42:00 +0000 (13:42 -0700)]
gh-131809: Upgrade vendored expat to 2.7.1 (#132192)
Adam Turner [Mon, 7 Apr 2025 17:27:54 +0000 (18:27 +0100)]
gh-118761: Cover the import time optimisations in What's New (#132035)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
sobolevn [Mon, 7 Apr 2025 16:35:17 +0000 (19:35 +0300)]
gh-130775: Allow negative locations in `ast` (#130795)
Co-authored-by: Victor Stinner <vstinner@python.org>
Peter Bierma [Mon, 7 Apr 2025 16:30:31 +0000 (12:30 -0400)]
gh-128182: switch `ctypes` locking to critical sections (#132133)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Kumar Aditya [Mon, 7 Apr 2025 16:29:24 +0000 (21:59 +0530)]
gh-132213: use relaxed atomics for set hash (#132215)
Bénédikt Tran [Mon, 7 Apr 2025 15:21:56 +0000 (17:21 +0200)]
gh-130843: add UUIDv7 timestamp recipes (#132154)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Hugo van Kemenade [Mon, 7 Apr 2025 15:21:13 +0000 (18:21 +0300)]
Docs HTML: Remove self-closing tags (#132220)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Jelle Zijlstra [Mon, 7 Apr 2025 14:48:55 +0000 (07:48 -0700)]
dictobject.c: Fix incorrect function name in errors (#132193)
sobolevn [Mon, 7 Apr 2025 14:46:47 +0000 (17:46 +0300)]
gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (#132222)
Hugo van Kemenade [Mon, 7 Apr 2025 14:09:46 +0000 (17:09 +0300)]
gh-123299: List PEPs 758 and 768 in 3.14 release highlights (#132211)
Prometheus3375 [Mon, 7 Apr 2025 12:02:49 +0000 (15:02 +0300)]
gh-131912: Use different grouping options for the integral and fractional parts (#132170)
sobolevn [Mon, 7 Apr 2025 11:59:44 +0000 (14:59 +0300)]
gh-132171: Fix `_interpreters.run_string` crash on string subclass (#132173)
btwood [Mon, 7 Apr 2025 11:06:32 +0000 (05:06 -0600)]
gh-61456: Add Thai language codec aliases (#15079)
Adding aliases for Thai language support. The current code page is an implementation of the windows code page.
This will alias '874', 'ms874', and 'windows_874' to cp874, adding Thai language support for those users.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
sobolevn [Mon, 7 Apr 2025 08:23:52 +0000 (11:23 +0300)]
gh-132174: Fix function name in error message of `_interpreters.run_string` (#132175)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Sonny Ding [Mon, 7 Apr 2025 08:03:03 +0000 (01:03 -0700)]
gh-122040: reword `Modules/xxmodule.c` module-level comment (#132201)
Bénédikt Tran [Mon, 7 Apr 2025 07:31:17 +0000 (09:31 +0200)]
gh-99108: add support for SIMD-accelerated HMAC-BLAKE2 (#132120)
Ned Deily [Mon, 7 Apr 2025 05:42:26 +0000 (01:42 -0400)]
gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (#132190)
Ned Deily [Mon, 7 Apr 2025 04:46:13 +0000 (00:46 -0400)]
gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)
Patch by Bénédikt Tran.
Vincent Fazio [Mon, 7 Apr 2025 03:53:02 +0000 (22:53 -0500)]
gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob (GH-132184)
* Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob
Add support for disabling the use of `posix_spawn` via a variable in
the process environment.
While it was previously possible to toggle this by modifying the value
of `subprocess._USE_POSIX_SPAWN`, this required either patching CPython
or modifying it within the interpreter instance which is not always
possible, such as when running applications or scripts not under a
user's control.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
* fixup NEWS entry
---------
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Sergey B Kirpichev [Sun, 6 Apr 2025 23:36:21 +0000 (02:36 +0300)]
Docs: Add a single table summary for ``cmath`` (#131887)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@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>
Brian Schubert [Sun, 6 Apr 2025 21:05:19 +0000 (17:05 -0400)]
gh-132168: Add `__class_getitem__` to `ctypes.py_object` (#132169)
Emma Smith [Sun, 6 Apr 2025 20:51:42 +0000 (13:51 -0700)]
gh-84481: Add ZipFile.data_offset attribute (#132165)
* Add ZipFile.data_offset attribute
This attribute provides the offset to zip data from the start of the file, when available.
* Add blurb-it
* Try fixing class ref in NEWS
Pieter Eendebak [Sun, 6 Apr 2025 20:40:52 +0000 (22:40 +0200)]
gh-126703: Add freelist for range and range_iter objects (GH-128619)
Pablo Galindo Salgado [Sun, 6 Apr 2025 20:39:25 +0000 (21:39 +0100)]
gh-131591: Handle includes for iOS in remote_debugging.c (#132050)
Tomas R. [Sun, 6 Apr 2025 20:15:17 +0000 (22:15 +0200)]
gh-132121: Always escape non-printable characters in pygettext (GH-132122)
Xuehai Pan [Sun, 6 Apr 2025 16:37:37 +0000 (00:37 +0800)]
gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (#132160)
sobolevn [Sun, 6 Apr 2025 16:10:39 +0000 (19:10 +0300)]
gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (#132018)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Alex Waygood [Sun, 6 Apr 2025 15:51:05 +0000 (16:51 +0100)]
gh-132139: 3.14 what's new: elaborate on why you can no longer set `Union` attributes (#132157)
Semyon Moroz [Sun, 6 Apr 2025 15:50:32 +0000 (19:50 +0400)]
gh-131178: Add tests for `pickle` command-line interface (#131275)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Jelle Zijlstra [Sun, 6 Apr 2025 12:43:09 +0000 (05:43 -0700)]
gh-132139: Document that you can no longer set attributes on unions (#132146)
Kumar Aditya [Sun, 6 Apr 2025 10:51:44 +0000 (16:21 +0530)]
gh-128182: add critical sections to ctypes arrays getters and setters (#132152)
Docs: Replace dead hyperlink for CGI environment variables (#132137)
Nadeshiko Manju [Sun, 6 Apr 2025 04:25:08 +0000 (12:25 +0800)]
gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (#132135)
Signed-off-by: Manjusaka <me@manjusaka.me>
Tomas R. [Sat, 5 Apr 2025 22:56:01 +0000 (00:56 +0200)]
GH-131798: Narrow the result of _CONTAINS_OP_SET to bool in the JIT (GH-132057)
Stan Ulbrych [Sat, 5 Apr 2025 19:38:39 +0000 (20:38 +0100)]
gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Rafael Fontenelle [Sat, 5 Apr 2025 19:20:21 +0000 (16:20 -0300)]
Fix numbered list syntax in programming.rst (#130158)
Adam Turner [Sat, 5 Apr 2025 18:11:07 +0000 (19:11 +0100)]
GH-118761: Expose more core interpreter types in ``_types`` (#132103)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Ken Jin [Sat, 5 Apr 2025 16:58:23 +0000 (00:58 +0800)]
gh-132132: Upgrade LLVM on tail calling CI (GH-132098)
Chris Eibl [Sat, 5 Apr 2025 16:00:54 +0000 (18:00 +0200)]
gh-131591: Fix GENERATE_DEBUG_SECTION for clangcl on Windows (GH-132112)
Pieter Eendebak [Sat, 5 Apr 2025 15:51:05 +0000 (17:51 +0200)]
gh-126703: Add PyCFunction freelist (GH-128692)
Adam Turner [Sat, 5 Apr 2025 14:20:06 +0000 (15:20 +0100)]
Generate social media preview cards for the documentation (#132101)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Serhiy Storchaka [Sat, 5 Apr 2025 13:41:57 +0000 (16:41 +0300)]
Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH-132072)
Tomas R. [Sat, 5 Apr 2025 10:36:16 +0000 (12:36 +0200)]
Docs: Fix typo in `InternalDocs/jit.md` (#132119)
Kumar Aditya [Sat, 5 Apr 2025 10:27:41 +0000 (15:57 +0530)]
gh-128182: add critical section to `_ctypes.Simple` getters and setters (#132081)
Kumar Aditya [Sat, 5 Apr 2025 09:54:58 +0000 (15:24 +0530)]
gh-128182: add critical section to `_ctypes.PyCData` methods (#132082)
Semyon Moroz [Sat, 5 Apr 2025 08:49:48 +0000 (12:49 +0400)]
gh-85162: Add `HTTPSServer` to `http.server` to serve files over HTTPS (#129607)
The `http.server` module now supports serving over HTTPS using the `http.server.HTTPSServer` class.
This functionality is also exposed by the command-line interface (`python -m http.server`) through the
`--tls-cert`, `--tls-key` and `--tls-password-file` options.
Yuki Kobayashi [Sat, 5 Apr 2025 08:46:17 +0000 (17:46 +0900)]
Docs: document `plistlib.InvalidFileException` (#132069)
Ageev Maxim [Sat, 5 Apr 2025 08:30:16 +0000 (11:30 +0300)]
gh-131015: Add test for bytes formatting errors (#131881)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Prometheus3375 [Sat, 5 Apr 2025 08:28:50 +0000 (11:28 +0300)]
gh-131912: Improve description of grouping options in the format specification docs (#132030)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Jelle Zijlstra [Sat, 5 Apr 2025 04:36:34 +0000 (21:36 -0700)]
gh-129463, gh-128593: Simplify ForwardRef (#129465)
Adam Turner [Fri, 4 Apr 2025 22:37:41 +0000 (23:37 +0100)]
gh-109599: Expose `CapsuleType` via the `_types` module (#131969)
Jelle Zijlstra [Fri, 4 Apr 2025 18:15:31 +0000 (11:15 -0700)]
gh-131933: Document UnionType/Union merger in What's New (#131941)
Co-authored-by: Alex Waygood
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>