Skip to content

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

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:csv-clinic
Open

serhiy-storchaka wants to merge 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.

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