[Python-Dev] Error message for wrong number of arguments

Armin Rigo armin.rigo at gmail.com
Wed Aug 1 17:40:46 EDT 2018


Hi,

On 30 July 2018 at 22:19, Chris Barker via Python-Dev
<python-dev at python.org> wrote:
> Oh well. This is a serious usability issue -- but what can you do?

I think that argument clinic knows if the built-in function is
supposed to be a method or a function.  It doesn't look too hard to
add a new flag METH_IS_METHOD or something, which would be taken in
consideration in the common cases, and which can be added manually OR
used automatically by argument clinic.  This would not be a 100%
solution out of the box, but if the new wording is right, it shouldn't
be a problem.


A bientôt,

Armin.


More information about the Python-Dev mailing list