cpython/Tools
Serhiy Storchaka 80c6519790
[3.13] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191) (GH-155217)
Parameters with a default value which are not in any group were always
required in the generated argument parsing code, although they were
rendered as optional in the signature.  They can now be omitted, and
ambiguous combinations of optional groups and parameters with a default
value are rejected.
(cherry picked from commit caac927830)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-05 14:39:17 +03:00
..
build [3.13] Update mypy to 2.1.0 (GH-149709) (#149713) 2026-05-12 09:06:58 +00:00
buildbot gh-115556: Remove quotes from command-line arguments in test.bat and rt.bat (#115557) 2024-02-16 21:24:56 +01:00
c-analyzer [3.13] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191) (GH-155217) 2026-08-05 14:39:17 +03:00
cases_generator [3.13] gh-133412: amend docs for the inst definition (GH-133708) (#133730) 2025-05-09 07:12:44 +00:00
check-c-api-docs [3.13] gh-151941: Fix Sphinx reference warnings in Doc/c-api/ (GH-152044) (GH-154922) 2026-07-30 09:12:54 -04:00
clinic [3.13] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191) (GH-155217) 2026-08-05 14:39:17 +03:00
freeze gh-65701: document that freeze doesn't work with framework builds on macOS (#113352) 2023-12-21 16:28:00 +01:00
gdb [3.13] gh-154580: Fix python-gdb.py pretty-printing non-ASCII strings in non-UTF-8 locales (GH-154581) (GH-154637) 2026-07-24 16:45:50 +00:00
i18n [3.13] gh-138286: Run `ruff on Tools/i18n` (GH-138287) (#138524) 2025-09-05 10:55:04 +03:00
importbench gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH-113649) 2024-01-10 15:07:19 +02:00
jit [3.13] GH-115869: Make jit_stencils.h reproducible (GH-127166) (#154988) 2026-08-04 10:59:51 +02:00
lockbench gh-108724: Add PyMutex and _PyParkingLot APIs (gh-109344) 2023-09-19 09:54:29 -06:00
msi [3.13] gh-153438: Update NuGet download URL (GH-153482) (GH-153515) 2026-07-10 13:04:00 +00:00
nuget bpo-41744: Package python.props with correct name in NuGet package (GH-22154) 2020-09-14 20:30:15 +01:00
patchcheck [3.13] patchcheck: use URL paths to identify upstream remote (GH-135806) (#135809) 2025-06-23 12:57:03 +03:00
peg_generator [3.13] gh-145783: Propagate errors raised in NEW_TYPE_COMMENT (GH-145784) (#145927) 2026-03-13 18:07:45 +00:00
scripts [3.13] Doc: fix duplicated words (GH-136086) (#137357) 2025-08-04 06:41:47 +08:00
ssl [3.13] gh-151159: Update CI to use latest SSL library versions (GH-151202) 2026-06-09 18:04:32 +00:00
tsan [3.13] gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602) (gh-130687) 2025-02-28 14:53:35 +00:00
tz bpo-29919: Remove unused imports found by pyflakes (#137) 2017-03-27 16:05:26 +02:00
unicode [3.13] gh-80667: Fix lookup for Tangut ideographs in unicodedata (GH-144789) (GH-144871) (GH-144875) 2026-02-16 15:02:01 +00:00
unittestgui Remove a redundant assignment in Tools/unittestgui/unittestgui.py (GH-21438) 2021-05-16 16:55:06 +01:00
wasm [3.13] gh-151929: Add pythoninfo commands to Tools/wasm/wasi.py (#152136) (#152224) (#152226) 2026-06-25 18:30:43 +00:00
README gh-100176: Remove outdated Tools/{io,cc,string}bench (#101853) 2024-02-17 14:17:21 -07:00
requirements-dev.txt [3.13] Update mypy to 2.3 (GH-154764) (#154768) 2026-07-27 16:25:55 +03:00
requirements-hypothesis.txt [3.13] gh-136297: Fix hypothesis and subTest usage in test_zoneinfo_property.py (GH-136384) (#136408) 2025-07-08 08:14:14 +00:00

This directory contains a number of Python programs that are useful
while building or extending Python.

build           Automatically generated directory by the build system
                contain build artifacts and intermediate files.

buildbot        Batchfiles for running on Windows buildbot workers.

c-analyzer      Tools to check no new global variables have been added.

cases_generator Tooling to generate interpreters.

clinic          A preprocessor for CPython C files in order to automate
                the boilerplate involved with writing argument parsing
                code for "builtins".

freeze          Create a stand-alone executable from a Python program.

gdb             Python code to be run inside gdb, to make it easier to
                debug Python itself (by David Malcolm).

i18n            Tools for internationalization. pygettext.py
                parses Python source code and generates .pot files,
                and msgfmt.py generates a binary message catalog
                from a catalog in text format.

importbench     A set of micro-benchmarks for various import scenarios.

msi             Support for packaging Python as an MSI package on Windows.

nuget           Files for the NuGet package manager for .NET.

patchcheck      Tools for checking and applying patches to the Python source code
                and verifying the integrity of patch files.

peg_generator   PEG-based parser generator (pegen) used for new parser.

scripts         A number of useful single-file programs, e.g. run_tests.py
                which runs the Python test suite.

ssl             Scripts to generate ssl_data.h from OpenSSL sources, and run
                tests against multiple installations of OpenSSL and LibreSSL.

tz              A script to dump timezone from /usr/share/zoneinfo.

unicode         Tools for generating unicodedata and codecs from unicode.org
                and other mapping files (by Fredrik Lundh, Marc-Andre Lemburg
                and Martin von Loewis).

unittestgui     A Tkinter based GUI test runner for unittest, with test
                discovery.

wasm            Config and helpers to facilitate cross compilation of CPython
                to WebAssembly (WASM).

Note: The pynche color editor has moved to https://gitlab.com/warsaw/pynche