Skip to content

gh-155496: Use Argument Clinic for more functions of the _csv module - #158133

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:csv-clinic
Sep 27, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:csv-clinic

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Convert reader(), writer(), register_dialect(), Dialect.__reduce__(), Dialect.__reduce_ex__() and Dialect.__replace__() from PyArg_ParseTuple()/PyArg_UnpackTuple() to Argument Clinic, so that they have a signature for introspection and use a faster calling convention.

__reduce__() and __reduce_ex__() shared one METH_VARARGS implementation which ignored its arguments; they are now separate functions, and __reduce_ex__() declares the protocol argument.

@serhiy-storchaka
serhiy-storchaka merged commit 93142c9 into python:main Sep 27, 2026
57 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the csv-clinic branch September 27, 2026 15:58
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