Commit graph

126312 commits

Author SHA1 Message Date
Nadeshiko Manju
d753d8aed7
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>
2025-04-08 09:12:09 -07:00
Tomas R.
71009cb835
GH-131798: Narrow the result type of _BINARY_OP_SUBSCR_STR_INT to str in the JIT (GH-132153) 2025-04-08 08:22:54 -07:00
Duprat
933c6653cb
gh-132063: ensure that ProcessPoolExecutor does not swallow falsey exceptions (#132129) 2025-04-08 15:11:13 +00:00
Hugo van Kemenade
c5e856a5dc Merge branch 'main' of https://github.com/python/cpython 2025-04-08 17:08:21 +03:00
Hugo van Kemenade
b6b5767e9b Post 3.14.0a7 2025-04-08 17:06:51 +03:00
Bénédikt Tran
f5a7037c32
gh-93096: fix test_mimetypes.test_invocation_error tests on iOS ARM64 (#132266) 2025-04-08 15:03:43 +02:00
Serhiy Storchaka
0e4cf9ce7c
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.
2025-04-08 14:26:32 +03:00
Hugo van Kemenade
29af6cee02 Python 3.14.0a7 2025-04-08 14:20:51 +03:00
Serhiy Storchaka
0f04f2456a
gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) 2025-04-08 13:56:42 +03:00
Peter Bierma
ac3c439cdf
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>
2025-04-08 10:31:43 +00:00
Bénédikt Tran
3eda146035
gh-74598: add fnmatch.filterfalse for excluding names matching a patern (#121185) 2025-04-08 10:11:25 +00:00
Adam Turner
ee3657209b
gh-118761: Optimise import time for `string` (#132037)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-08 10:05:48 +00:00
Bénédikt Tran
53908bd790
gh-93096: fix test_mimetypes.test_guess_type_conflicting_with_mimetypes (#131408) 2025-04-08 09:08:59 +00:00
Irit Katriel
8c9ef8f1f8
gh-100239: more stats for BINARY_OP/SUBSCR specialization (#132230) 2025-04-08 08:50:51 +00:00
David Brochart
297e05932d
Fixed a typo in the documentation (#132005) 2025-04-08 11:43:11 +03:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
403886c28d
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>
2025-04-08 11:25:46 +03:00
sobolevn
f7305a06c7
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>
2025-04-08 11:14:12 +03:00
Emma Smith
6cd1d6c6b1
gh-84481: Make ZipFile.data_offset more robust (#132178) 2025-04-08 10:43:14 +03:00
Ee Durbin
40844164b1
Add psfhosted Plausible instance to analytics (#132252) 2025-04-08 10:37:42 +03:00
Inada Naoki
e2b35ee229
enum: remove unused function (#132044) 2025-04-08 09:23:48 +09:00
Stan Ulbrych
f5639d87f5
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>
2025-04-07 21:58:50 +01:00
Gregory P. Smith
c0de650024
gh-131809: Upgrade vendored expat to 2.7.1 (#132192) 2025-04-07 23:42:00 +03:00
Adam Turner
f0dcb29d3a
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>
2025-04-07 17:27:54 +00:00
sobolevn
bc5233b6a5
gh-130775: Allow negative locations in ast (#130795)
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-07 19:35:17 +03:00
Peter Bierma
8e260b384a
gh-128182: switch ctypes locking to critical sections (#132133)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-04-07 22:00:31 +05:30
Kumar Aditya
ed99e28d5b
gh-132213: use relaxed atomics for set hash (#132215) 2025-04-07 21:59:24 +05:30
Bénédikt Tran
fd1b98dd1d
gh-130843: add UUIDv7 timestamp recipes (#132154)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-07 17:21:56 +02:00
Hugo van Kemenade
ce724571b3
Docs HTML: Remove self-closing tags (#132220)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-04-07 18:21:13 +03:00
Jelle Zijlstra
9a6b702f3a
dictobject.c: Fix incorrect function name in errors (#132193) 2025-04-07 07:48:55 -07:00
sobolevn
8b62374b34
gh-132221: Fix __match_args__ generation docs in dataclasses.rst (#132222) 2025-04-07 17:46:47 +03:00
Hugo van Kemenade
e80ed2cf75
gh-123299: List PEPs 758 and 768 in 3.14 release highlights (#132211) 2025-04-07 15:09:46 +01:00
Prometheus3375
316974382a
gh-131912: Use different grouping options for the integral and fractional parts (#132170) 2025-04-07 14:02:49 +02:00
sobolevn
3980718710
gh-132171: Fix _interpreters.run_string crash on string subclass (#132173) 2025-04-07 14:59:44 +03:00
btwood
895d983b5c
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>
2025-04-07 13:06:32 +02:00
sobolevn
f2daa96c81
gh-132174: Fix function name in error message of _interpreters.run_string (#132175)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2025-04-07 11:23:52 +03:00
Sonny Ding
af8d1b9537
gh-122040: reword Modules/xxmodule.c module-level comment (#132201) 2025-04-07 08:03:03 +00:00
Bénédikt Tran
b865871486
gh-99108: add support for SIMD-accelerated HMAC-BLAKE2 (#132120) 2025-04-07 09:31:17 +02:00
Ned Deily
c55c0201fc
gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (#132190) 2025-04-07 01:42:26 -04:00
Ned Deily
ce49022b07
gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)
Patch by Bénédikt Tran.
2025-04-07 00:46:13 -04:00
Vincent Fazio
4c5dcc6d82
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>
2025-04-06 20:53:02 -07:00
Sergey B Kirpichev
6eaa4aeef2
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>
2025-04-07 00:36:21 +01:00
Brian Schubert
e2476398ee
gh-132168: Add __class_getitem__ to ctypes.py_object (#132169) 2025-04-06 22:05:19 +01:00
Emma Smith
0788948dcb
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
2025-04-06 13:51:42 -07:00
Pieter Eendebak
dff8bcfa3c
gh-126703: Add freelist for range and range_iter objects (GH-128619) 2025-04-07 04:40:52 +08:00
Pablo Galindo Salgado
2067378e6d
gh-131591: Handle includes for iOS in remote_debugging.c (#132050) 2025-04-06 21:39:25 +01:00
Tomas R.
a693eaa710
gh-132121: Always escape non-printable characters in pygettext (GH-132122) 2025-04-06 23:15:17 +03:00
Xuehai Pan
7bb1e1a236
gh-132159: Do not shadow user arguments in generated __new__ by @warnings.deprecated (#132160) 2025-04-06 16:37:37 +00:00
sobolevn
c0661df42a
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>
2025-04-06 19:10:39 +03:00
Alex Waygood
42e3a8410b
gh-132139: 3.14 what's new: elaborate on why you can no longer set Union attributes (#132157) 2025-04-06 17:51:05 +02:00
Semyon Moroz
f247e1d04c
gh-131178: Add tests for pickle command-line interface (#131275)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-06 11:50:32 -04:00