summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-114123: Migrate docstring from _csv to csv (#114124)Skip Montanaro2024-01-184-79/+78
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org>
* gh-112092: clarify unstable ABI recompilation requirements (#112093)DerSchinken2024-01-181-1/+1
| | | Use different versions in the examples for when extensions do and do not need to be recompiled to make the examples easier to understand.
* gh-111968: Use per-thread freelists for generator in free-threading (gh-114189)Donghee Na2024-01-189-74/+48
|
* gh-114087: Speed up dataclasses._asdict_inner (#114088)keithasaurus2024-01-182-45/+56
|
* gh-114198: Rename dataclass __replace__ argument to 'self' (gh-114251)Phillip Schanely2024-01-182-6/+8
| | | | This change renames the dataclass __replace__ method's first argument name from 'obj' to 'self'.
* gh-108303: Move all doctest related files and tests to ↵Nikita Sobolev2024-01-1818-117/+153
| | | | | `Lib/test/test_doctest/` (#112109) Co-authored-by: Brett Cannon <brett@python.org>
* Delete unused macro (GH-114238)Mark Shannon2024-01-181-3/+0
|
* gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350)Christopher Chavez2024-01-182-1/+2
|
* gh-103092: Convert some `_ctypes` metatypes to heap types (GH-113620)AN Long2024-01-182-281/+141
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-114050: Fix crash when more than two arguments are passed to int() ↵kcatss2024-01-183-1/+4
| | | | | (GH-114067) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-104522: Fix test_subprocess failure when build Python in the root home ↵Serhiy Storchaka2024-01-181-8/+7
| | | | | | | | | directory (GH-114236) * gh-104522: Fix test_subprocess failure when build Python in the root home directory EPERM is raised when setreuid() fails. EACCES is set in execve() when the test user has not access to sys.executable.
* gh-114231: Fix indentation in enum.rst (#114232)Miyashita Yosuke2024-01-181-1/+1
|
* gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)Terry Jan Reedy2024-01-188-42/+45
| | | | | Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
* gh-114211: Update EmailMessage doc about ordered keys (#114224)Terry Jan Reedy2024-01-181-3/+3
| | | Ordered keys are no longer unlike 'real dict's.
* gh-113205: test_multiprocessing.test_terminate: Test the API on threadpools ↵Petr Viktorin2024-01-181-3/+8
| | | | | | | | | | | | | | | | (#114186) gh-113205: test_multiprocessing.test_terminate: Test the API works on threadpools Threads can't be forced to terminate (without potentially corrupting too much state), so the expected behaviour of `ThreadPool.terminate` is to wait for the currently executing tasks to finish. The entire test was skipped in GH-110848 (0e9c364f4ac18a2237bdbac702b96bcf8ef9cb09). Instead of skipping it entirely, we should ensure the API eventually succeeds: use a shorter timeout. For the record: on my machine, when the test is un-skipped, the task manages to start in about 1.5% cases.
* gh-104522: Fix OSError raised when run a subprocess (#114195)Serhiy Storchaka2024-01-184-18/+29
| | | | | | | Only set filename to cwd if it was caused by failed chdir(cwd). _fork_exec() now returns "noexec:chdir" for failed chdir(cwd). Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
* gh-114149: [Enum] revert #114160 and add more tuple-subclass tests (GH-114215)Ethan Furman2024-01-182-9/+24
| | | This reverts commit 05e142b1543eb9662d6cc33722e7e16250c9219f.
* gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when ↵Steve Dower2024-01-181-1/+1
| | | | directory name includes a dot (GH-114217)
* gh-112984 Update Windows build and installer for free-threaded builds ↵Steve Dower2024-01-1776-244/+1436
| | | | (GH-113129)
* gh-38807: Fix race condition in Lib/trace.py (GH-110143)buermarc2024-01-172-2/+4
| | | | Instead of checking if a directory does not exist and thereafter creating it, directly call os.makedirs() with the exist_ok=True.
* Fix typo in tkinter.ttk.rst (GH-106157)Christophe Nanteuil2024-01-171-1/+1
|
* gh-105102: Fix nested unions in structures when the system byteorder is the ↵Sheidan2024-01-173-2/+22
| | | | opposite (GH-105106)
* gh-114149: [Enum] fix tuple subclass handling when using custom __new__ ↵Ethan Furman2024-01-173-3/+20
| | | | (GH-114160)
* gh-114070: fix token reference warnings in expressions.rst (#114169)Sergey B Kirpichev2024-01-171-2/+3
|
* gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)Erlend E. Aasland2024-01-171-0/+1
|
* Merge branch 'main' of https://github.com/python/cpythonThomas Wouters2024-01-177-2/+71
|\
| * gh-112343: pdb: Use tokenize to replace convenience variables (#112380)Tian Gao2024-01-173-1/+45
| |
| * gh-111301: Advertise importlib methods removal in What's new in Python 3.12 ↵Karolina Surma2024-01-171-0/+12
| | | | | | | | (GH-111630)
| * gh-104282: Fix null pointer dereference in `lzma._decode_filter_properties` ↵Radislav Chugunov2024-01-173-1/+14
| | | | | | | | (GH-104283)
* | Post 3.13.0a3Thomas Wouters2024-01-171-1/+1
| |
* | Python 3.13.0a3v3.13.0a3Thomas Wouters2024-01-17235-896/+3024
|/
* gh-86179: Skip test case that fails on POSIX with unversioned binary (GH-114136)Steve Dower2024-01-171-1/+2
|
* gh-72284: Revise lists in IDLE doc (#114174)Terry Jan Reedy2024-01-174-79/+60
| | | | | | | | | Tkinter is a fact, not necessarily a feature. Reorganize editor key bindings in a logical order and remove those that do not work, at least on Windows. Improve shell bindings list.
* gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168)Terry Jan Reedy2024-01-171-1/+1
| | | | | This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse.
* gh-112043: Align concurrent.futures.Executor.map docs with implementation ↵Erlend E. Aasland2024-01-171-5/+5
| | | | | (#114153) The first parameter is named 'fn', not 'func'.
* gh-88531 Fix dataclass __post_init__/__init__ interplay documentation ↵Steffen Zeile2024-01-171-3/+3
| | | | | (gh-107404) * Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
* gh-106293: Fix typos in Objects/object_layout.md (#106294)Mano Sriram2024-01-161-3/+3
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-110109: pathlib docs: bring `from_uri()` and `as_uri()` together. (#110312)Barney Gale2024-01-161-49/+61
| | | | | | | This is a very soft deprecation of `PurePath.as_uri()`. We instead document it as a `Path` method, and add a couple of sentences mentioning that it's also available in `PurePath`. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Fix typo in c_annotations.py comment (#108773)Kuan-Wei Chiu2024-01-161-1/+1
| | | "compatability" => "compatibility"
* gh-94220: Align fnmatch docs with the implementation and amend markup (#114152)Erlend E. Aasland2024-01-161-12/+14
| | | | | | | | - Align the argument spec for fnmatch functions with the actual implementation. - Update Sphinx markup to recent recommandations. - Add link to 'iterable' glossary entry. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-78988: Document `pathlib.Path.glob()` exception propagation. (#114036)Barney Gale2024-01-161-0/+4
| | | | We propagate the `OSError` from the `is_dir()` call on the top-level directory, and suppress all others.
* gh-113655: Increase default stack size for PGO builds to avoid C stack ↵Steve Dower2024-01-162-3/+9
| | | | exhaustion (GH-114148)
* gh-112529: Track if debug allocator is used as underlying allocator (#113747)Sam Gross2024-01-164-6/+21
| | | | | | | | | | | | | | | * gh-112529: Track if debug allocator is used as underlying allocator The GC implementation for free-threaded builds will need to accurately detect if the debug allocator is used because it affects the offset of the Python object from the beginning of the memory allocation. The current implementation of `_PyMem_DebugEnabled` only considers if the debug allocator is the outer-most allocator; it doesn't handle the case of "hooks" like tracemalloc being used on top of the debug allocator. This change enables more accurate detection of the debug allocator by tracking when debug hooks are enabled. * Simplify _PyMem_DebugEnabled
* Update copyright years to 2024. (GH-113608)solya0x2024-01-1610-18/+16
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097)Brett Cannon2024-01-168-12/+15
| | | Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
* Clean up backslash avoiding code in ast, fix typo (#113605)Shantanu2024-01-161-8/+5
| | | | | | As of #108553, the `_avoid_backslashes` code path is dead `scape_newlines` was introduced in #110271. Happy to drop the typo fix if we don't want it
* gh-113659: Skip hidden .pth files (GH-113660)Serhiy Storchaka2024-01-163-1/+52
| | | | Skip .pth files with names starting with a dot or hidden file attribute.
* Fix 'expresion' typo in IDLE doc (#114130)Terry Jan Reedy2024-01-161-48/+71
| | | The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
* Docs: Improve multiprocessing.SharedMemory reference (#114093)Erlend E. Aasland2024-01-161-38/+46
| | | | | | | | | Align the multiprocessing shared memory docs with Diatáxis's recommendations for references. - use a parameter list for the SharedMemory.__init__() argument spec - use the imperative mode - use versionadded, not versionchanged, for added parameters - reflow touched lines according to SemBr
* gh-114096: Restore privileges in _winapi.CreateJunction after creating the ↵Steve Dower2024-01-162-7/+24
| | | | | junction (GH-114089) This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.