Serhiy Storchaka
ba0aca3bff
gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994)
...
Co-authored-by: Sebastian Gassner <sebastian.gassner@gmail.com>
2026-05-19 11:36:12 +03:00
Hugo van Kemenade
517d3d2c10
gh-145098: Use macos-26-intel instead of macos-15-intel ( #149991 )
...
This reverts commit cb76ab3819 .
2026-05-19 07:41:25 +03:00
Gregory P. Smith
68ebc051fc
gh-86533: Make Path.mkdir parent_mode tests umask-independent ( #150040 )
...
test_mkdir_with_parent_mode, test_mkdir_parent_mode_deep_hierarchy and
test_mkdir_parent_mode_same_as_mode assert exact directory mode bits but
did not pin the process umask. On buildbots running with a restrictive
umask (e.g. 0o077) the 0o755 leaf was masked down to 0o700, failing the
assertions. Wrap them in os_helper.temp_umask(0o022), matching the
other umask-aware mkdir tests in this file.
2026-05-19 01:19:06 +00:00
Daniil
17eb17d43f
gh-69619: Clarify whitespace definition in str.strip docs (GH-150021)
2026-05-19 03:10:50 +02:00
Lukas Geiger
43c3438a2a
gh-141968: Use take_bytes to remove copy in _pyio.BytesIO.read() ( #149850 )
2026-05-19 00:48:41 +00:00
Dan Shernicoff
398d7e1d13
gh-79413: Add qualname parameter to dataclass.make_dataclass. (GH-150026)
...
Added `qualname` parameter to `dataclasses.make_dataclass` in order to allow user to set `__qualname__` for the generated class.
2026-05-18 19:55:47 -04:00
Saul Cooperman
57a0e570d3
gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix race condition ( #150025 )
...
Remove assertion that could fail in rare race condition.
Replace the coarse critical section wrapping the entire function with
fine-grained sections covering only PyDict_Next + Py_INCREF.
Also handle PyDict_Next returning 0 in the single-item fast path.
2026-05-18 16:26:08 -07:00
Armaan Vakharia
56737483c2
gh-149590: Remove faulthandler_traverse ( #150023 )
...
`faulthandler_traverse` visits Python objects owned by `_PyRuntime`, not
by the module instance. With multi-phase init allowing multiple module
instances, each instance's GC traversal decrements `gc_refs` on the same
runtime-owned objects, driving it negative when two instances are
collected simultaneously.
2026-05-18 16:00:59 -07:00
nessita
9770e32ce0
gh-86533: Restore os.makedirs() ability to apply *mode* recursively (GH-150011)
...
bpo-42367: Restore os.makedirs() and pathlib.mkdir() ability to apply *mode* recursively via a new parent_mode= keyword argument.
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-18 23:00:27 +00:00
Victor Stinner
9eb50a40b4
gh-149879: Fix multiprocessing tests on Cygwin ( #150031 )
...
* Disable AF_UNIX connection family on Cygwin.
* forkserver start method is not available on Cygwin: update tests
for that.
* test_logging calls multiprocessing.get_all_start_methods().
2026-05-19 00:45:35 +02:00
Stefanie Molin
0aa59ce2d4
gh-72088: clarify inspect.ismethod and inspect.isfunction (and related) usage with class-level access (GH-150013)
...
Co-authored-by: CHINMAY <89741289+Das-Chinmay@users.noreply.github.com>
2026-05-19 00:42:55 +02:00
ankhikarmakar
5775aa8e29
gh-149980: Strip all trailing slashes from GNU long directory names in tarfile (GH-150019)
2026-05-18 19:31:15 +00:00
sobolevn
6d5be4b1d6
gh-149977: Fix extra output of -m test test_lazy_import ( #149978 )
2026-05-18 21:55:27 +03:00
Jeff Epler
806c997f55
gh-140344: ast: Add deprecation warnings ( #140345 )
...
These were all deprecated in 3.9 (bace59d8b8 ) but without
a runtime deprecation warning. Add it now, so that these
items can be removed in 3.21 per PEP 387.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2026-05-18 11:20:49 -07:00
Jan Brasna
dbd8985e82
gh-95816: Fix TLS version range example in docs (GH-148574)
...
docs(ssl): Fix TLS version range example
2026-05-18 18:01:56 +00:00
Kumar Aditya
00ea77613b
gh-149816: fix thread safety of deletion of list slice ( #149936 )
2026-05-18 22:08:37 +05:30
Kumar Aditya
1692854706
gh-149816: fix dict.clear() race on split-table dict with non-embedded values ( #149914 )
2026-05-18 21:39:45 +05:30
sobolevn
14af19e6c0
gh-149816: Fix a RC in _random.Random.__init__ method ( #149824 )
2026-05-18 18:39:54 +03:00
Hugo van Kemenade
f4cb79aa43
gh-146531: Skip hanging wm iconbitmap test on macOS 26 Intel ( #148032 )
2026-05-18 14:57:02 +00:00
Maurycy Pawłowski-Wieroński
a2932e9c95
gh-149464: Add os.pidfd_getfd(pidfd, targetfd, flags=0) function ( #149465 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-05-18 16:29:58 +02:00
Nathan Goldbaum
bd6bf91fcb
gh-149887: Install python3t.lib for GIL-enabled Windows install (GH-149900)
2026-05-18 14:24:06 +01:00
Nezuko Agent
0ed497a350
gh-149953: Fix null pointer dereference order in code_objects.c ( #149956 )
...
Move check before
2026-05-18 11:28:28 +03:00
Lukas Geiger
18281db0d0
gh-144140: Optimize len for frozen dict/set constants in optimizer ( #149969 )
2026-05-18 12:20:42 +05:30
Pieter Eendebak
6ee879ffa1
gh-138325: steal list items in INTRINSIC_LIST_TO_TUPLE opcode ( #149960 )
2026-05-18 12:07:12 +05:30
AN Long
acefff95ea
gh-149921: Fix reference leaks in _interpchannels and _interpqueues modules ( #149922 )
2026-05-17 13:09:19 +03:00
Farhan Saif
e62a61177f
gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle ( #146470 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-05-17 14:35:27 +05:30
Serhiy Storchaka
1cbe035723
gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917)
2026-05-17 11:06:35 +03:00
Mani Salahmand
1bab6c9192
gh-149857: Clarify multiprocessing Process argument wording (GH-149919)
...
Use consistent 'picklable' wording
2026-05-16 23:01:50 -07:00
Savage Mechanic
5f8d9d3575
gh-67512: Document IMAP4.append() flags argument ( #149907 )
2026-05-16 11:24:41 -07:00
Victor Stinner
a7ed0c9e1d
gh-149879: Fix test_socket on Cygwin ( #149913 )
...
Disable SCM_RIGHTS, recvmsg(), sendmsg() and sethostname() on Cygwin.
2026-05-16 10:02:19 +00:00
Victor Stinner
436a6f2894
gh-149879: Fix test_os on Cygwin ( #149910 )
2026-05-16 10:50:55 +02:00
sobolevn
46afba7b93
gh-149816: Fix a race condition in _PyBytes_FromList with free-threading ( #149909 )
2026-05-16 08:37:34 +00:00
Victor Stinner
e56ae817e5
gh-149879: Fix test_resource on Cygwin ( #149903 )
...
Setting RLIMIT_FSIZE or RLIMIT_CPU fails with EINVAL on Cygwin.
2026-05-15 23:09:36 +00:00
Victor Stinner
1441f2f735
gh-149879: Don't import msvcrt in _pyio on Cygwin ( #149899 )
...
The msvcrt extension module cannot be built on Cygwin.
2026-05-15 21:11:09 +00:00
Victor Stinner
c92ef3a6de
gh-149879: Fix test_tarfile on Cygwin ( #149897 )
...
On Cygwin, there is no root user (uid 0).
Fix test_realpath_limit_attack(): the test fails with ELOOP on
Cygwin.
2026-05-15 20:49:37 +00:00
Victor Stinner
d9ad171ced
gh-149879: Fix test_signal on Cygwin ( #149896 )
...
* Check for SIG_BLOCK instead of pthread_sigmask() to decide if
SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK constants should be
converted to enums.
* Skip ITIMER_VIRTUAL and ITIMER_PROF tests on Cygwin: setitimer()
fails with ItimerError(EINVAL).
2026-05-15 21:32:10 +02:00
Stan Ulbrych
9ee9f58747
gh-149567: Remove deprecated shutil.ExecError ( #149568 )
2026-05-15 18:54:05 +01:00
Victor Stinner
9778db13f7
gh-149879: Set thread name max length on Cygwin ( #149890 )
...
This change fix test_threading on Cygwin.
2026-05-15 16:57:05 +00:00
Victor Stinner
c92588efd3
gh-149879: Fix test_pwd on Cygwin ( #149880 )
...
On Cygwin, pwd.getpwuid(-1) returns an user ('Unknown+User').
2026-05-15 16:33:46 +00:00
sobolevn
8be3fb1b50
gh-142349: Add help("lazy") support ( #149886 )
2026-05-15 16:30:40 +00:00
Victor Stinner
c575172425
gh-149879: Fix sys.orig_argv[0] on Cygwin: add ".exe" suffix ( #149885 )
2026-05-15 15:55:34 +00:00
Carlo Bramini
50aff5fc5c
gh-149831: Fix ctypes DLL library name on Cygwin ( #149832 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-15 14:29:26 +00:00
Hugo van Kemenade
a318a9d8d7
CI: Move Homebrew dependencies into Brewfile ( #148335 )
...
Co-authored-by: Brett Cannon <brett@python.org>
2026-05-15 17:03:46 +03:00
Carlo Bramini
3fafbc8e56
gh-149833: Change DLL prefix to "cygpython" on Cygwin ( #149834 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-15 15:54:08 +02:00
Steve Dower
1c5fe21eb2
gh-149786: Fixes venvlauncher builds on Windows free-threaded (GH-149847)
2026-05-15 14:43:41 +01:00
Steve Dower
4aa296f9c4
gh-138489: Add build-details.json generation to PC/layout (GH-149153)
2026-05-15 13:51:27 +01:00
Victor Stinner
a0551b1a12
gh-148200: Update Modules/_hacl/ for Cygwin ( #149802 )
...
This pulls an updated version of HACL* that fixes Lib_Memzero0.c on
Cygwin, via an upstream fix.
2026-05-15 14:42:30 +02:00
sobolevn
1fdf033774
gh-149816: Fix race condition in memoryview with free-threading ( #149858 )
2026-05-15 15:38:51 +03:00
Serhiy Storchaka
20438866ae
gh-149801: Add IANA registered names and aliases with leading zeros (GH-149804)
...
Like IBM00858, CP00858, IBM01140, CP01140.
2026-05-15 14:34:48 +03:00
Victor Stinner
3ecca22567
gh-148675: Use a string for ctypes cparam tag ( #149778 )
2026-05-15 13:25:09 +02:00