Skip to content

gh-155496: Use Argument Clinic for more functions of the _thread module - #155514

Merged
serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:thread-clinic
Sep 24, 2026
Merged

serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:thread-clinic

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Convert all functions and methods of the _thread module, except the start_new(), allocate() and exit_thread() aliases, which Argument Clinic cannot express.

The type of the args and kwargs arguments of start_new_thread() is now checked by the generated code, therefore the error message for a wrong type is the standard one.

@serhiy-storchaka
serhiy-storchaka marked this pull request as ready for review August 14, 2026 05:17
# Conflicts:
#	Include/internal/pycore_global_objects_fini_generated.h
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) September 24, 2026 17:23
# Conflicts:
#	Include/internal/pycore_unicodeobject_generated.h
@serhiy-storchaka
serhiy-storchaka merged commit a5b03fa into python:main Sep 24, 2026
52 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the thread-clinic branch September 24, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant