A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-August/154915.html below:

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

[Python-Dev] Error message for wrong number of arguments [Python-Dev] Error message for wrong number of argumentsLarry Hastings larry at hastings.org
Fri Aug 3 08:08:07 EDT 2018
On 08/01/2018 02:40 PM, Armin Rigo wrote:
> I think that argument clinic knows if the built-in function is
> supposed to be a method or a function.

Yes, Argument Clinic knows.  Clinic's "Function" instances have a "cls" 
member, and if that's set to a Clinic "Class" instance--and it's not one 
of the special methods like new or init--then it's a normal method.
> 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.

Yes, Clinic could easily automatically generate such a flag.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180803/4c1216c8/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4