Stan Ulbrych
47d2f68df2
gh-139707: Better ModuleNotFoundError message for missing stdlib modules (GH-140219)
2025-10-21 09:12:04 +02:00
Pål Grønås Drange
b2f9fb9db2
gh-140358: Bring back elapsed time and unreachable count to gc debug output ( #140359 )
2025-10-21 00:54:44 +01:00
sobolevn
e09837fcbf
gh-133601: Remove deprecated typing.no_type_check_decorator ( #133602 )
2025-10-20 21:10:44 +00:00
Christoph Walcher
c6be6e4537
gh-138891: fix star-unpack in get_annotations ( #138951 )
2025-10-20 19:55:08 +00:00
Serhiy Storchaka
38d4b436ca
gh-63161: Fix tokenize.detect_encoding() (GH-139446)
...
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
* Detect decoding error for non-UTF-8 encoding.
* Detect null bytes in source code.
2025-10-20 20:08:47 +03:00
Charlie Lin
e4f6445f30
gh-140166: Use application/texinfo as sole MIME type for .texi and .texinfo files ( #140165 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-10-20 16:14:23 +03:00
Hugo van Kemenade
99c3c63d2b
gh-76007: Deprecate __version__ attribute in imaplib ( #140299 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-20 15:20:44 +03:00
Mikhail Efimov
5d0abb6971
gh-139951: Test on GC collection disabled if threshold is zero (GH-140304)
2025-10-20 11:45:07 +01:00
Kumar Aditya
58c44c2bf2
gh-140067: Fix memory leak in sub-interpreter creation ( #140111 ) ( #140261 )
...
Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-18 16:36:58 +05:30
Barney Gale
f4e51f253a
GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 ( #133831 )
...
In Python 3.13 (but not 3.12 or 3.14), pathlib classes are defined in
`pathlib._local` rather than `pathlib`. In hindsight this was a mistake,
but it was difficult to predict how the abstract/local split would pan out.
In this patch we re-introduce `pathlib._local` as a stub module that
re-exports the classes from `pathlib`. This allows path objects pickled in
3.13 to be unpicked in 3.14+
2025-10-17 21:57:51 +00:00
Serhiy Storchaka
fbf0843e39
gh-135801: Add tests for filtering warnings by module (GH-140240)
2025-10-17 14:21:39 +03:00
Alper
9a87ce8b57
gh-116738: test uuid module thread safety in free-threading ( #140068 )
2025-10-16 23:57:51 +05:30
bzoracler
379fd020a0
gh-138859: Account for ParamSpec defaults that are not lists … ( #138868 )
2025-10-16 05:30:36 -07:00
Victor Stinner
4641925bf2
Set type names earlier in posixmodule.c ( #140168 )
2025-10-16 12:54:57 +02:00
Stan Ulbrych
7ac94fcb1d
gh-140170: Fix test_site with -s flag (GH-140179)
...
Commit
2025-10-16 12:49:08 +03:00
Mikhail Efimov
f673f0e7b4
gh-139817: Attribute __qualname__ is added to TypeAliasType ( #139919 )
2025-10-15 09:08:17 -07:00
Pablo Galindo Salgado
0c66da8de4
gh-140137: Handle empty collections in profiling.sampling ( #140154 )
2025-10-15 14:59:12 +01:00
yihong
a05aece543
gh-140080: Clear atexit callbacks when memory allocation fails during finalization (GH-140103)
...
This fixes a regression introduced by GH-136004, in which finalization would hang while executing atexit handlers if the system was out of memory.
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-15 09:49:55 -04:00
Jeffrey Bosboom
fe9ac7fc8c
gh-83714: Implement os.statx() function ( #139178 )
...
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-15 13:44:08 +00:00
Stan Ulbrych
46f11b36ad
gh-76007: Deprecate zlib.__version__ attribute ( #140130 )
2025-10-15 13:18:48 +02:00
Serhiy Storchaka
279db6bede
gh-139640: Fix swallowing syntax warnings in different modules (GH-139755)
...
Revert GH-131993.
Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.
2025-10-14 17:48:09 +03:00
Stan Ulbrych
87eadce3e0
gh-101828: Fix jisx0213 codecs removing null characters (gh-139340)
2025-10-14 22:55:00 +09:00
Wulian233
5976432138
gh-137634: Modernize calendar.HTMLCalendar output ( #137635 )
2025-10-14 13:25:12 +03:00
Gil Forcada Codinachs
253534515c
gh-139958: Add TOML MIME type ( #139959 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-14 13:20:14 +03:00
Hugo van Kemenade
9c1279d5de
gh-124111: test macOS CI with Tk 9 ( #137424 )
...
Co-authored-by: Ned Deily <nad@python.org>
2025-10-14 00:00:58 -04:00
Stan Ulbrych
1a82568568
gh-139823: Check if zlib is available in ensurepip (GH-139954)
2025-10-13 16:01:06 +02:00
Arseniy Krupchik
bb85af343f
gh-136438: Make sure test.test_pydoc.test_pydoc pass with all optimization levels ( #136479 )
...
test_pydoc.test_pydoc now passes with -OO
2025-10-12 15:17:41 -07:00
Savannah Ostrowski
0fc5c56815
GH-139979: Add @force_not_colorized_test_class to TestOptionalHelpVersionActions ( #139980 )
2025-10-12 09:51:13 -07:00
Alper
a18843dbfb
gh-116738: test dbm.gnu module on FT Python build ( #138467 )
2025-10-12 13:12:10 +05:30
Victor Stinner
35e9d41a9c
gh-139482: Add posix._clearenv() function ( #139965 )
2025-10-11 22:58:43 +02:00
Victor Stinner
166cdaa6fb
gh-111489: Remove _PyTuple_FromArray() alias ( #139973 )
...
Replace _PyTuple_FromArray() with PyTuple_FromArray().
Remove pycore_tuple.h includes.
2025-10-11 22:58:14 +02:00
Stan Ulbrych
5776d0d2e0
gh-139905: Provide suggestion in error message if Generic.__init_subclass__ was not called ( #139943 )
2025-10-11 15:14:29 +00:00
Bénédikt Tran
2eb32add92
gh-139935: do not skip test on real errors in os.getlogin ( #139953 )
2025-10-11 16:31:34 +02:00
yihong
897a36badd
gh-139935: fix test_os.test_getlogin on some platforms ( #139936 )
...
This amends 4e7e2dd043 to catch errors
that `os.getlogin` can raise as specified by POSIX and Linux/glibc [1].
[1]: https://man7.org/linux/man-pages/man3/getlogin.3.html#ERRORS
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-11 12:32:57 +00:00
Dino Viehland
ff7bb565d8
gh-139924: Add PyFunction_PYFUNC_EVENT_MODIFY_QUALNAME event for function watchers ( #139925 )
...
Add PyFunction_PYFUNC_EVENT_MODIFY_QUALNAME event for function watchers
2025-10-10 15:25:38 -07:00
Sam Gross
d9b4eef71e
gh-139001: Fix thread-safety issue in pathlib.Path (gh-139066)
...
Don't cache the joined path in `_raw_path` because the caching isn't thread safe.
2025-10-10 17:20:18 -04:00
Barney Gale
49aaee7978
pathlib ABCs: restore relative_to() and is_relative_to() ( #138853 )
...
Restore `JoinablePath.[is_]relative_to()`, which were deleted in
ef63cca494 . These methods are too useful to
forgo. Restore old tests, and add new tests covering path classes with
non-overridden `__eq__()` and `__hash__()`.
Slightly simplify `PurePath.relative_to()` while we're in the area.
No change to public APIs, because the pathlib ABCs are still private.
2025-10-10 19:08:55 +01:00
Kumar Aditya
b881df47ff
gh-139894: fix incorrect sharing of current task while forking in asyncio ( #139897 )
...
Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`.
2025-10-10 21:58:23 +05:30
Serhiy Storchaka
1c598e0436
gh-139065: Fix trailing space before long word in textwrap (GH-139070)
...
Fix trailing space before a wrapped long word if the line length with
a space is exactly "width".
2025-10-10 16:29:18 +03:00
Serhiy Storchaka
5c942f11cd
gh-63161: Fix PEP 263 support (GH-139481)
...
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
* Detect decoding error in comments for UTF-8 encoding.
* Include the decoding error position for default encoding in SyntaxError.
2025-10-10 12:51:19 +00:00
Nadeshiko Manju
7cafd76a7f
gh-139184: Set O_CLOEXEC for master_fd when calling os.forkpty() ( #139408 )
...
Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-10 10:56:10 +02:00
Serhiy Storchaka
f4104f5d74
gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836)
2025-10-10 10:51:24 +03:00
Victor Stinner
e31c22dbf9
gh-111489: Add PyTuple_FromArray() function ( #139691 )
2025-10-10 08:54:12 +02:00
Filipe Laíns
9e15770d62
GH-78870: copy test from GH-20439 ( #139884 )
...
Signed-off-by: Filipe Laíns <lains@riseup.net>
2025-10-10 05:52:13 +00:00
Savannah Ostrowski
9fc4366f09
GH-139809: Fix argparse subcommand prog not respecting color environment variables ( #139818 )
2025-10-09 16:53:14 +00:00
yihong
b8c8b8f1d3
gh-139391: properly handle signal.signal() in UnixConsole when called from a non-main thread ( #139392 )
2025-10-09 14:58:01 +00:00
DeepWzh
81959a0364
gh-133400: Fixed Ctrl+D (^D) behavior in :mod:_pyrepl module (GH-133883)
...
Co-authored-by: adam j hartz <adam@smatz.net>
2025-10-09 16:16:48 +02:00
Peter
65089406a5
gh-139743: Avoid import-time print in test_sqlite3 (GH-139746)
2025-10-09 11:00:37 +03:00
Alper
7f155f9c46
gh-116738: make mmap module thread-safe ( #139237 )
2025-10-09 12:00:47 +05:30
Stan Ulbrych
e7e3d1d4a8
gh-139805: Bump test_repl_eio timeout for slow builtbots ( #139807 )
2025-10-09 00:34:40 +02:00