<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 08/01/2018 02:40 PM, Armin Rigo
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMSv6X1W7D9NROSKr96Dob-eDm1LRP4S+FZQao3uXOAFsq5QKA@mail.gmail.com">
<pre wrap="">I think that argument clinic knows if the built-in function is
supposed to be a method or a function.</pre>
</blockquote>
<br>
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.<br>
<blockquote type="cite"
cite="mid:CAMSv6X1W7D9NROSKr96Dob-eDm1LRP4S+FZQao3uXOAFsq5QKA@mail.gmail.com">
<pre wrap="">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.</pre>
</blockquote>
<br>
Yes, Clinic could easily automatically generate such a flag.<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>