Pymethods
Pymethods is a common name used in the CPython C API to refer to the array of PyMethodDef structures that defines module-level functions exposed to Python from a C extension. It is not a Python language feature, but a convention used by developers to register callable methods with a module.
A PyMethodDef structure describes a single function and its behavior. Its fields include the function name
In practice, a module defines a static array named pymethods that lists all functions to be exported.
Pymethods plays a role alongside the type’s method table, tp_methods, which defines instance methods for Python
Overall, pymethods is a conventional, language-specific construct within CPython’s C API for wiring C implementations to