Skip to content

gh-155496: Use Argument Clinic for the getpath module - #158132

Open
serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:getpath-clinic
Open

serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:getpath-clinic

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Convert the 11 helper functions of the internal getpath module (abspath, basename, dirname, hassuffix, isabs, isdir, isfile, isxfile, joinpath, readlines, realpath) from PyArg_ParseTuple() to Argument Clinic, so they use the METH_FASTCALL or METH_O calling convention and the argument types are checked by the generated code.

Argument Clinic now converts the path argument of abspath(), isabs() and
isdir() to a wide character string, and isabs() and isdir() use the bool
return converter.
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