You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic: list the converters defined in a C file #155212
--converters prints only the built-in converters and refuses to accept a file name:
$ ./python Tools/clinic/clinic.py --converters Modules/posixmodule.c
clinic.py: error: can't specify --converters and a filename at the same time
But 23 files in the tree define their own converters in [python input] blocks -- path_t, dir_fd, uid_t and others in Modules/posixmodule.c, for example -- and there is no way to get their list and their parameters.
They are registered in the same registry as the built-in ones, so it is only a matter of parsing the given files before printing the list. This is one of the ideas listed in #108643.
Activity
pythongh-155212: Check for a directory before opening the file
gh-155212: List the converters defined in a C file (GH-155221)
pythongh-155212: List the converters defined in a C file (pythonGH-15…