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
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
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
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
Stan Ulbrych
47d2f68df2
gh-139707: Better ModuleNotFoundError message for missing stdlib modules (GH-140219)
2025-10-21 09:12:04 +02: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
Frost Ming
d86ad870cc
gh-140251: colorize import statement formatting in asyncio console ( #140252 )
2025-10-18 20:05:24 +05:30
Serhiy Storchaka
936de256a9
Move the NEWS entry for gh-140272 to the correct place (GH-140290)
2025-10-18 10:54:40 +00:00
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
bzoracler
379fd020a0
gh-138859: Account for ParamSpec defaults that are not lists … ( #138868 )
2025-10-16 05:30:36 -07:00
Jonathan Protzenko
3a81313019
gh-140120: Refresh HACL* to fix an hmac memory leak (GH-140188)
...
This pulls an updated version of HACL* that fixes the memory leak reported in #140120 , via an upstream fix.
2025-10-16 05:25:51 +00:00
Malcolm Smith
7f371ed84b
gh-140041: Fix import of ctypes on Android and Cygwin when ABI flags are present ( #140178 )
...
Use sysconfig to determine the full name of libpython, rather than hardcoding
a library name that doesn't have ABI flags.
2025-10-16 05:40:39 +08:00
Bartosz Sławecki
bcced02604
gh-140141: Properly break exception chain in importlib.metadata.Distribution.from_name ( #140142 )
2025-10-15 12:49:14 -04:00
Maurycy Pawłowski-Wieroński
d301587369
gh-140135: Use PyBytesWriter in io.RawIOBase.readall(); 4x faster ( #140139 )
2025-10-15 14:04:17 +00: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
Hugo van Kemenade
348a26ff0e
Merge branch 'main' of https://github.com/python/cpython
2025-10-14 17:41:22 +03:00
Stan Ulbrych
87eadce3e0
gh-101828: Fix jisx0213 codecs removing null characters (gh-139340)
2025-10-14 22:55:00 +09:00
Sergey B Kirpichev
6ecf77dbde
gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836)
...
Sync C/Python implementation of the decimal: logical_ops for contexts.
2025-10-14 11:02:02 +00:00
Hugo van Kemenade
aeff92d86a
Python 3.15.0a1
2025-10-14 13:46:08 +03: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
Stan Ulbrych
207f977bc7
gh-138993: Dedent credits text ( #138994 )
2025-10-14 11:15:17 +03:00
Rafael Fontenelle
f70082b477
gh-70765: Remove unnecessary extra backtick from Changelog entry ( #140071 )
2025-10-14 11:05:59 +03:00
Kumar Aditya
6481539a6d
gh-125996: fix thread safety of collections.OrderedDict ( #133734 )
2025-10-13 22:55:07 +05:30
Stan Ulbrych
1a82568568
gh-139823: Check if zlib is available in ensurepip (GH-139954)
2025-10-13 16:01:06 +02:00
Victor Stinner
35e9d41a9c
gh-139482: Add posix._clearenv() function ( #139965 )
2025-10-11 22:58:43 +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
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
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
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
Savannah Ostrowski
9fc4366f09
GH-139809: Fix argparse subcommand prog not respecting color environment variables ( #139818 )
2025-10-09 16:53:14 +00:00
yihong
a310b3a99d
gh-139845: do not print twice in default asyncio REPL ( #139846 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-09 15:24:52 +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
ed
72e370c910
gh-139736: Fix argparse indentation overshoot ( #139738 )
...
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
2025-10-08 15:36:53 +00:00
Adam Turner
3195da0b1a
gh-105812: Use the `:deco:` role in place of manual decorator markup ( #139619 )
2025-10-05 21:15:36 +01:00
Bénédikt Tran
13dc2fde8c
gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests ( #139514 )
2025-10-05 12:03:25 +00:00
Serhiy Storchaka
9e3542a6c2
gh-136097: Fix sysconfig._parse_makefile() ( #136166 )
...
* Fix potential infinite recursion.
* Fix a bug when reference can cross boundaries of substitutions, e.g.
a=$(
b=$(a)a)
* Fix potential quadratic complexity.
* Fix KeyError for undefined CFLAGS, LDFLAGS, or CPPFLAGS.
* Fix infinite recursion when keep_unresolved=False.
* Unify behavior with keep_unresolved=False for bogus $ occurred before
and after variable references.
2025-10-04 14:57:12 +01:00
Cycloctane
a7a485558c
gh-133951: Remove lib64->lib symlink in venv creation ( #137139 )
...
* Remove lib64->lib symlink in venv directory
* fix test
* remove unused import
* add news
2025-10-04 14:55:17 +01:00
Semyon Moroz
8d17d79299
gh-138044: Remove deprecated parameter alias for importlib.resources.files ( #138059 )
2025-10-04 14:53:43 +01:00