]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 months agogh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH...
Furkan Onder [Sun, 13 Apr 2025 11:06:38 +0000 (11:06 +0000)] 
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625)

Fix recursive limit assertions on NetBSD for posix_spawn.

6 months agogh-129169: update `asyncio.ensure_future` docs to suggest taskgroups
Case Zumbrum [Sun, 13 Apr 2025 07:59:22 +0000 (03:59 -0400)] 
gh-129169: update `asyncio.ensure_future` docs to suggest taskgroups

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 months agogh-123471: Make concurrent iteration over itertools.repeat safe under free-threading...
Pieter Eendebak [Sun, 13 Apr 2025 07:56:58 +0000 (09:56 +0200)] 
gh-123471: Make concurrent iteration over itertools.repeat safe under free-threading (#131247)

6 months agogh-132106: Ensure that running `logging.handlers.QueueListener` cannot be started...
Charles Machalow [Sun, 13 Apr 2025 07:53:13 +0000 (00:53 -0700)] 
gh-132106: Ensure that running `logging.handlers.QueueListener` cannot be started again (GH-132444)

Prevents a thread leak
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months agogh-132354: document return value for `asyncio.Task.cancel` (#132374)
Felix Scherz [Sun, 13 Apr 2025 07:35:44 +0000 (09:35 +0200)] 
gh-132354: document return value for `asyncio.Task.cancel` (#132374)

6 months agoFix a typo in c-api/typeobj.rst (#132317)
Yongzi Li [Sun, 13 Apr 2025 07:18:58 +0000 (15:18 +0800)] 
Fix a typo in c-api/typeobj.rst (#132317)

6 months agoDocs: Fix a typo in `Doc/c-api/unicode.rst` (#132318)
Yongzi Li [Sun, 13 Apr 2025 07:16:59 +0000 (15:16 +0800)] 
Docs: Fix a typo in `Doc/c-api/unicode.rst` (#132318)

6 months agogh-132429: Remove not working test for Bluetooth socket (GH-132459)
Serhiy Storchaka [Sat, 12 Apr 2025 22:35:28 +0000 (01:35 +0300)] 
gh-132429: Remove not working test for Bluetooth socket (GH-132459)

6 months agogh-132429: Fix support of Bluetooth sockets on NetBSD and DragonFly BSD (GH-132431)
Serhiy Storchaka [Sat, 12 Apr 2025 20:57:34 +0000 (23:57 +0300)] 
gh-132429: Fix support of Bluetooth sockets on NetBSD and DragonFly BSD (GH-132431)

* Also add support for cid and bdaddr_type in the BTPROTO_L2CAP address on FreeBSD.
* Return cid in getsockname() for BTPROTO_L2CAP if it is not zero.
* Fix a compiler warning on FreeBSD.

6 months agogh-132388: Increase test coverage for HMAC (#132389)
Bénédikt Tran [Sat, 12 Apr 2025 17:43:11 +0000 (19:43 +0200)] 
gh-132388: Increase test coverage for HMAC (#132389)

- Correctly test missing `digestmod` and `digest` parameters.
- Test when chunks of length > 2048 are passed to `update()`.
- Test one-shot HMAC-BLAKE2.

6 months agogh-132185: Speed up expanduser() test with large password database (GH-132231)
Serhiy Storchaka [Sat, 12 Apr 2025 16:17:52 +0000 (19:17 +0300)] 
gh-132185: Speed up expanduser() test with large password database (GH-132231)

Use only a limited number of randomly selected entries.

6 months agoDocs: Fix specifications of `gcvisitobjects_t` (#132433)
da-woods [Sat, 12 Apr 2025 15:36:02 +0000 (16:36 +0100)] 
Docs: Fix specifications of `gcvisitobjects_t` (#132433)

`gcvisitobjects_t` callbacks should return 1 for the iteration to continue instead of 0.

6 months agogh-58211: Add tests for the `__self__` attribute of builtins functions (#113575)
Adorilson Bezerra [Sat, 12 Apr 2025 12:02:43 +0000 (13:02 +0100)] 
gh-58211: Add tests for  the `__self__` attribute of builtins functions (#113575)

---------

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 months agogh-132106: Allow `logging.handlers.QueueListener` to be used as a context manager...
Charles Machalow [Sat, 12 Apr 2025 12:00:04 +0000 (05:00 -0700)] 
gh-132106: Allow `logging.handlers.QueueListener` to be used as a context manager (#132107)

6 months agogh-123441: Update Belorussian spelling (GH-132409)
Stan Ulbrych [Sat, 12 Apr 2025 10:36:01 +0000 (11:36 +0100)] 
gh-123441: Update Belorussian spelling (GH-132409)

6 months agogh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993)
Tomas R. [Sat, 12 Apr 2025 10:34:36 +0000 (12:34 +0200)] 
gh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993)

6 months agogh-125434: Fix building on OpenBSD (GH-132393)
Serhiy Storchaka [Sat, 12 Apr 2025 08:25:35 +0000 (11:25 +0300)] 
gh-125434: Fix building on OpenBSD (GH-132393)

pthread_get_name_np is defined in pthread_np.h.

6 months agogh-132399: fix invalid function signatures on the free-threaded build (#132400)
Bénédikt Tran [Sat, 12 Apr 2025 07:46:33 +0000 (09:46 +0200)] 
gh-132399: fix invalid function signatures on the free-threaded build (#132400)

6 months agogh-131290: ensure that test files can be executed as standalone scripts (#131371)
Maksim [Sat, 12 Apr 2025 07:46:19 +0000 (10:46 +0300)] 
gh-131290: ensure that test files can be executed as standalone scripts (#131371)

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 months agoGH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning...
Nicolas Trangez [Sat, 12 Apr 2025 07:40:34 +0000 (09:40 +0200)] 
GH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning `PyObject *` (#132418)

Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception.

6 months agogh-132097: fix runtime UB when calling expat handlers (#132265)
Bénédikt Tran [Sat, 12 Apr 2025 07:20:11 +0000 (09:20 +0200)] 
gh-132097: fix runtime UB when calling expat handlers (#132265)

6 months agogh-132097: skip tests raising an explicit SIGSEV when UB sanitizer is on (#132398)
Bénédikt Tran [Sat, 12 Apr 2025 07:18:58 +0000 (09:18 +0200)] 
gh-132097: skip tests raising an explicit SIGSEV when UB sanitizer is on (#132398)

6 months agogh-130322: drop deprecation of `asyncio.set_event_loop` (#132349)
Kumar Aditya [Sat, 12 Apr 2025 06:33:52 +0000 (12:03 +0530)] 
gh-130322: drop deprecation of `asyncio.set_event_loop` (#132349)

6 months agogh-132386: Fix a crash when passing a dict subclass to `exec` (GH-132412)
Tomas R. [Fri, 11 Apr 2025 21:05:03 +0000 (23:05 +0200)] 
gh-132386: Fix a crash when passing a dict subclass to `exec` (GH-132412)

* Fix crash when passing a dict subclass to exec

* Add news entry

6 months agoAdd ``.yaml`` to ``.editorconfig`` (#132410)
Xuehai Pan [Fri, 11 Apr 2025 18:23:13 +0000 (02:23 +0800)] 
Add ``.yaml`` to ``.editorconfig`` (#132410)

6 months agogh-85302: Add support for BTPROTO_SCO on FreeBSD (GH-131981)
Serhiy Storchaka [Fri, 11 Apr 2025 16:38:17 +0000 (19:38 +0300)] 
gh-85302: Add support for BTPROTO_SCO on FreeBSD (GH-131981)

BTPROTO_SCO has been supported on FreeBSD since 2008.

6 months agogh-127405: Add ABIFLAGS to sysconfig variables on Windows (GH-131799)
Xuehai Pan [Fri, 11 Apr 2025 15:19:03 +0000 (23:19 +0800)] 
gh-127405: Add ABIFLAGS to sysconfig variables on Windows (GH-131799)

6 months agogh-111178: fix incorrect function signatures in docs (#132395)
Bénédikt Tran [Fri, 11 Apr 2025 14:59:38 +0000 (16:59 +0200)] 
gh-111178: fix incorrect function signatures in docs (#132395)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
6 months agogh-132356: Find the correct group name in test_group_no_follow_symlinks (#132357)
Karolina Surma [Fri, 11 Apr 2025 14:58:39 +0000 (16:58 +0200)] 
gh-132356: Find the correct group name in test_group_no_follow_symlinks (#132357)

Find the correct group name in test_group_no_follow_symlinks

6 months agoCI: Update outdated references to Python version and GH issues (#132394)
Bénédikt Tran [Fri, 11 Apr 2025 14:46:33 +0000 (16:46 +0200)] 
CI: Update outdated references to Python version and GH issues (#132394)

6 months agogh-131127: Minimal build support on systems using LibreSSL (GH-131128)
Collin Funk [Fri, 11 Apr 2025 12:35:12 +0000 (05:35 -0700)] 
gh-131127: Minimal build support on systems using LibreSSL (GH-131128)

6 months agoGH-127682: Only call `__iter__` once in generator expressions. (GH-132351)
Mark Shannon [Fri, 11 Apr 2025 08:37:22 +0000 (09:37 +0100)] 
GH-127682: Only call `__iter__` once in generator expressions. (GH-132351)

6 months agogh-132257: Remove -flto-partition=none for Linux LTO builds (GH-132258)
Ken Jin [Fri, 11 Apr 2025 08:06:05 +0000 (16:06 +0800)] 
gh-132257: Remove -flto-partition=none for Linux LTO builds (GH-132258)

Change the default LTO flags on GCC to not pass -flto-partition=none, and allow parallelization of LTO. This has a multiple factor speedup for LTO build times on GCC, with no noticeable loss in performance.

On newer make and newer GCC, this passes the jobserver automatically to GCC (or more like GCC grabs it from the env vars).

On older make, this will have benign warnings about serial compilation. It's safe to ignore them.

6 months agogh-132261: Store annotations at hidden internal keys in the class dict (#132345)
Jelle Zijlstra [Fri, 11 Apr 2025 04:13:26 +0000 (21:13 -0700)] 
gh-132261: Store annotations at hidden internal keys in the class dict (#132345)

6 months agoGH-131296: Suppress "unused label" warning for clang-cl closer to actual occurrence...
Chris Eibl [Thu, 10 Apr 2025 22:17:33 +0000 (00:17 +0200)] 
GH-131296: Suppress "unused label" warning for clang-cl closer to actual occurrence (GH-131900)

6 months agoGH-123599: `url2pathname()`: handle authority section in file URL (#126844)
Barney Gale [Thu, 10 Apr 2025 19:58:04 +0000 (20:58 +0100)] 
GH-123599: `url2pathname()`: handle authority section in file URL (#126844)

In `urllib.request.url2pathname()`, if the authority resolves to the
current host, discard it. If an authority is present but resolves somewhere
else, then on Windows we return a UNC path (as before), and on other
platforms we raise `URLError`.

Affects `pathlib.Path.from_uri()` in the same way.

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>
6 months agogh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324)
Stan Ulbrych [Thu, 10 Apr 2025 15:41:32 +0000 (16:41 +0100)] 
gh-132307: Remove unnecessary check in `asyncio/base_events.py` (#132324)

6 months agogh-106482: Clarify documentation of character set in RE (#106517)
Serhiy Storchaka [Thu, 10 Apr 2025 13:41:41 +0000 (16:41 +0300)] 
gh-106482: Clarify documentation of character set in RE (#106517)

Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 months agoFix example code in curses tutorial (#126446)
Jiayu Yi [Thu, 10 Apr 2025 12:06:38 +0000 (20:06 +0800)] 
Fix example code in curses tutorial (#126446)

6 months agoFix a typo in Python/pylifecycle.c (#132350)
Chu [Thu, 10 Apr 2025 11:57:37 +0000 (19:57 +0800)] 
Fix a typo in Python/pylifecycle.c (#132350)

6 months agogh-130320: gettext: Test fallback translations (GH-130321)
Tomas R. [Thu, 10 Apr 2025 11:56:21 +0000 (13:56 +0200)] 
gh-130320: gettext: Test fallback translations (GH-130321)

6 months agoDocs: Add a missing trailing full stop (#130561)
Liam DeVoe [Thu, 10 Apr 2025 11:51:20 +0000 (07:51 -0400)] 
Docs: Add a missing trailing full stop (#130561)

6 months agogh-132316: Require `socket` and `GITHUB_TOKEN` env to use `GitHubArtifactDatabase...
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>
6 months agogh-72631: Fix wrong documentation for GzipFile.peek (#29820)
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>
6 months agogh-130453: pygettext: Allow specifying multiple keywords with the same function name...
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)

6 months agogh-132336: Mark a few "slow path" functions used by the interpreter loop as noinline...
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.

6 months agodocs: Fix typo in context_aware_warnings flag (#132340)
Jo [Thu, 10 Apr 2025 04:19:01 +0000 (12:19 +0800)] 
docs: Fix typo in context_aware_warnings flag (#132340)

6 months agoGH-132330: Synchronise ``Doc/includes/typestruct.h`` with ``PyTypeObject`` (#132332)
Adam Turner [Thu, 10 Apr 2025 00:51:56 +0000 (01:51 +0100)] 
GH-132330: Synchronise ``Doc/includes/typestruct.h`` with ``PyTypeObject`` (#132332)

6 months agogh-128384: Use a context variable for warnings.catch_warnings (gh-130010)
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>
6 months agoEscape hyphens in manpage (#132291)
Stefano Rivera [Wed, 9 Apr 2025 22:41:16 +0000 (15:41 -0700)] 
Escape hyphens in manpage (#132291)

6 months agoGH-131798: Remove JIT guards for dict, frozenset, list, set, and tuple (GH-132289)
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)

6 months agogh-131336: fix thread safety for ctypes functions (#132232)
Kumar Aditya [Wed, 9 Apr 2025 18:18:40 +0000 (23:48 +0530)] 
gh-131336: fix thread safety for ctypes functions  (#132232)

6 months agogh-130587: Invoke regen-token rst with rstfile as an argument (#132304)
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)

6 months agogh-132305: Make Argument Clinic code compatible with Python 3.10 (#132306)
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)

6 months agoRemove a duplicate word in the Makefile (#132301)
Chu [Wed, 9 Apr 2025 17:47:52 +0000 (01:47 +0800)] 
Remove a duplicate word in the Makefile (#132301)

6 months agogh-132285: Fix that `__annotate__` is not deleted when `__annotations__` is deleted...
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)

6 months agogh-129987: Disable GCC SLP autovectorization for the interpreter loop on x86-64 ...
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.

7 months agoupdate comment about LLVM bug relevant for `--with-tail-call-interp` performance...
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)

7 months agogh-126703: Fix possible use after free in pycfunction freelist (GH-132319)
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)

7 months agogh-131434: Improve error reporting for incorrect format in strptime() (GH-131568)
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.

7 months agogh-130631: Make join_header_words() more similar to the original Perl version (GH...
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.

7 months agogh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (#132274)
Ł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>
7 months agogh-112068: C API: Add support of nullable arguments in PyArg_Parse (GH-121303)
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)

7 months agogh-132246: Add PEP 688 to C Buffer Protocol docs (#132249)
Cody Maloney [Tue, 8 Apr 2025 17:43:27 +0000 (10:43 -0700)] 
gh-132246: Add PEP 688 to C Buffer Protocol docs (#132249)

7 months agogh-132250: Clear error in lsprof callback when method descriptor raises an excep...
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)

7 months agogh-106670: Fix a typo in doc of pdb's exceptions command (#132277)
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)

7 months agoGH-131798: Narrow the result of _CONTAINS_OP_DICT to bool in the JIT (GH-132269)
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>
7 months agoGH-131798: Narrow the result type of _BINARY_OP_SUBSCR_STR_INT to str in the JIT...
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)

7 months agogh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions ...
Duprat [Tue, 8 Apr 2025 15:11:13 +0000 (17:11 +0200)] 
gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (#132129)

7 months agoMerge branch 'main' of https://github.com/python/cpython
Hugo van Kemenade [Tue, 8 Apr 2025 14:08:21 +0000 (17:08 +0300)] 
Merge branch 'main' of https://github.com/python/cpython

7 months agoPost 3.14.0a7
Hugo van Kemenade [Tue, 8 Apr 2025 14:06:51 +0000 (17:06 +0300)] 
Post 3.14.0a7

7 months agogh-93096: fix `test_mimetypes.test_invocation_error` tests on iOS ARM64 (#132266)
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)

7 months agogh-50333: Deprecate support of non-tuple sequences in PyArg_ParseTuple() (GH-128374)
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.

7 months agoPython 3.14.0a7 v3.14.0a7
Hugo van Kemenade [Tue, 8 Apr 2025 11:20:32 +0000 (14:20 +0300)] 
Python 3.14.0a7

7 months agogh-117779: Fix reading duplicated entries in zipfile by name (GH-129254)
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)

7 months agogh-131998: Fix `NULL` dereference when using an unbound method descriptor in a specia...
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>
7 months agogh-74598: add `fnmatch.filterfalse` for excluding names matching a patern (#121185)
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)

7 months agogh-118761: Optimise import time for ``string`` (#132037)
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>
7 months agogh-93096: fix `test_mimetypes.test_guess_type_conflicting_with_mimetypes` (#131408)
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)

7 months agogh-100239: more stats for BINARY_OP/SUBSCR specialization (#132230)
Irit Katriel [Tue, 8 Apr 2025 08:50:51 +0000 (09:50 +0100)] 
gh-100239: more stats for BINARY_OP/SUBSCR specialization (#132230)

7 months agoFixed a typo in the documentation (#132005)
David Brochart [Tue, 8 Apr 2025 08:43:11 +0000 (10:43 +0200)] 
Fixed a typo in the documentation (#132005)

7 months agogh-132021: Add bool type to the list of allowed JSON key types (#132048)
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) [Tue, 8 Apr 2025 08:25:46 +0000 (13:55 +0530)] 
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>
7 months agogh-115942: Add `locked` to several multiprocessing locks (#115944)
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>
7 months agogh-84481: Make ZipFile.data_offset more robust (#132178)
Emma Smith [Tue, 8 Apr 2025 07:43:14 +0000 (00:43 -0700)] 
gh-84481: Make ZipFile.data_offset more robust (#132178)

7 months agoAdd psfhosted Plausible instance to analytics (#132252)
Ee Durbin [Tue, 8 Apr 2025 07:37:42 +0000 (03:37 -0400)] 
Add psfhosted Plausible instance to analytics (#132252)

7 months agoenum: remove unused function (#132044)
Inada Naoki [Tue, 8 Apr 2025 00:23:48 +0000 (09:23 +0900)] 
enum: remove unused function (#132044)

7 months agogh-130521: Add Open Graph meta tags to template pages (#130523)
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>
7 months agogh-131809: Upgrade vendored expat to 2.7.1 (#132192)
Gregory P. Smith [Mon, 7 Apr 2025 20:42:00 +0000 (13:42 -0700)] 
gh-131809: Upgrade vendored expat to 2.7.1 (#132192)

7 months agogh-118761: Cover the import time optimisations in What's New (#132035)
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>
7 months agogh-130775: Allow negative locations in `ast` (#130795)
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>
7 months agogh-128182: switch `ctypes` locking to critical sections (#132133)
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>
7 months agogh-132213: use relaxed atomics for set hash (#132215)
Kumar Aditya [Mon, 7 Apr 2025 16:29:24 +0000 (21:59 +0530)] 
gh-132213: use relaxed atomics for set hash (#132215)

7 months agogh-130843: add UUIDv7 timestamp recipes (#132154)
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>
7 months agoDocs HTML: Remove self-closing tags (#132220)
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>
7 months agodictobject.c: Fix incorrect function name in errors (#132193)
Jelle Zijlstra [Mon, 7 Apr 2025 14:48:55 +0000 (07:48 -0700)] 
dictobject.c: Fix incorrect function name in errors (#132193)

7 months agogh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (#132222)
sobolevn [Mon, 7 Apr 2025 14:46:47 +0000 (17:46 +0300)] 
gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (#132222)

7 months agogh-123299: List PEPs 758 and 768 in 3.14 release highlights (#132211)
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)

7 months agogh-131912: Use different grouping options for the integral and fractional parts ...
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)

7 months agogh-132171: Fix `_interpreters.run_string` crash on string subclass (#132173)
sobolevn [Mon, 7 Apr 2025 11:59:44 +0000 (14:59 +0300)] 
gh-132171: Fix `_interpreters.run_string` crash on string subclass (#132173)

7 months agogh-61456: Add Thai language codec aliases (#15079)
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>