Tapeline
4f8e7b5ac5
gh-136327: Fix inconsistent `TypeError` messages regarding invalid values after * and ** ( #136395 )
2025-10-24 19:12:49 +00:00
Barry Warsaw
b3c713a0af
gh-140482: Preserve and restore stty echo as a test environment ( #140519 )
...
gh-140482: Restore `stty echo` as a test environment
2025-10-24 11:07:08 -07:00
Mikhail Efimov
be5af997f3
gh-140517: fix leak in map_next in strict mode ( #140543 )
2025-10-24 21:29:16 +05:30
Jiseok CHOI
aa4b5a77f3
gh-136535: Tests: Correct Py_TPFLAGS_MANAGED_DICT in test_class.py (gh-136538)
2025-10-24 20:20:09 +09:00
sobolevn
92c0c45563
gh-138857: Improve error message for case outside of match ( #138858 )
...
* gh-138857: Improve error message for `case` outside of `match`
---------
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2025-10-24 11:20:54 +02:00
Tan Long
161b3064ef
gh-133390: sqlite3 CLI completion for tables, columns, indices, triggers, views, functions, schemata (GH-136101)
2025-10-24 08:26:36 +02:00
Victor Stinner
5d2edf72d2
gh-83714: Set os.statx().stx_mode to None if missing from stx_mask ( #140484 )
...
* Set stx_mode to None if STATX_TYPE|STATX_MODE is missing from
stx_mask.
* Enhance os.statx() tests.
* statx_result structure: remove atime_sec, btime_sec, ctime_sec and
mtime_sec members. Compute them on demand when stx_atime,
stx_btime, stx_ctime and stx_mtime are read.
* Doc: fix statx members sorting.
2025-10-23 22:35:17 +02:00
Stan Ulbrych
95953b692d
gh-140471: Fix buffer overflow in AST node initialization with malformed _fields ( #140506 )
2025-10-23 15:35:21 +00:00
Bartosz Sławecki
1a3da2c070
gh-140438: properly run the asyncio REPL tests ( #140298 )
2025-10-23 20:53:23 +05:30
George Ogden
4d0849426f
gh-138774: use value to ast.unparse code when str is None in ast.Interpolation ( #139415 )
2025-10-23 13:56:05 +00:00
Maurycy Pawłowski-Wieroński
6be6f8ff59
gh-137627: Make csv.Sniffer.sniff() delimiter detection 1.6x faster ( #137628 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-23 15:28:29 +03:00
Stan Ulbrych
aa9d0a61d5
gh-140474: Fix memory leak in array.array (GH-140478)
2025-10-23 05:49:27 -04:00
Bartosz Sławecki
b3b0d75069
gh-140253: Improve the syntax error from an ill-positioned double-star subpattern ( #140254 )
2025-10-22 21:29:14 +03:00
Stefano Rivera
76fea5596c
gh-130317: Fix SNaN broken tests on HP PA RISC ( #140452 )
...
While looking at #140028 , I found some unrelated test regressions in the
3.14 cycle. These seem to all come from #130317 . From what I can tell,
that made Python more correct than it was before. According to [0], HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.
[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
2025-10-22 18:36:12 +02:00
Jakob
d2f3cfd384
gh-140448: Default suggest_on_error to True in argparse.ArgumentParser ( #140450 )
2025-10-22 16:15:26 +00:00
Victor Stinner
7339cf7899
gh-83714: Use "stx_" prefix for all os.statx_result members ( #140432 )
...
Rename stx_birthtime to stx_btime, and rename stx_birthtime_ns to
stx_btime_ns.
2025-10-22 11:48:37 +02:00
Alper
b3a38438d8
gh-116738: Make _suggestions module thread-safe (gh-140321)
2025-10-22 09:14:48 +09:00
Russell Keith-Magee
29b38b7aae
gh-55258: Skip tests of stdout status on mobile platforms ( #140401 )
...
Skip tests of stdout status on mobile platforms.
2025-10-22 07:12:26 +08:00
Stan Ulbrych
02c1abfc54
gh-69528: Distinguish between file modes "wb+" and "rb+" (GH-137834)
...
Co-authored-by: Xiang Zhang <angwerzx@126.com>
2025-10-21 20:33:30 +03:00
David Ellis
95c257e2e6
gh-138764: annotationlib: Make call_annotate_function fallback to using VALUE annotations if both the requested format and VALUE_WITH_FAKE_GLOBALS are not implemented ( #138803 )
2025-10-21 15:57:43 +00:00
Mark Shannon
0c01090ad9
GH-139951: Fix major GC performance regression (GH-140262)
...
* Count number of actually tracked objects, instead of trackable objects. This ensures that untracking tuples has the desired effect of reducing GC overhead
* Do not track most untrackable tuples during creation. This prevents large numbers of small tuples causing execessive GCs.
2025-10-21 15:22:15 +01:00
Peter Bierma
71db05a12d
gh-140406: Fix memory leak upon __hash__ returning a non-integer (GH-140411)
2025-10-21 08:10:01 -04:00
Victor Stinner
fe4b60208e
gh-83714: Fix os.statx() tests on tmpfs: st_birthtime can be None ( #140407 )
2025-10-21 10:24:49 +00:00
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