]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116646, AC: Always use PyObject_AsFileDescriptor() in fildes (#116806)
authorVictor Stinner <vstinner@python.org>
Thu, 14 Mar 2024 13:58:07 +0000 (14:58 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 13:58:07 +0000 (14:58 +0100)
commita76288ad9ba715216a29c89e046846b3eaf0fab7
tree33ec622c1df7a0703e0e14b0971ba218883ab12b
parent2a54c4b25e05e30c50b915302fa846dd0d4e018b
gh-116646, AC: Always use PyObject_AsFileDescriptor() in fildes (#116806)

The fildes converter of Argument Clinic now always call
PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback
when PyObject_AsFileDescriptor() cannot be used.
Modules/clinic/posixmodule.c.h
Modules/clinic/selectmodule.c.h
Modules/clinic/termios.c.h
Tools/clinic/clinic.py