[Python-Dev] Speed up function calls

"Martin v. Löwis" martin at v.loewis.de
Tue Jan 25 00:30:44 CET 2005


Neal Norwitz wrote:
>>Where are the Py_DECREFs done for the function arguments?
> 
> 
> The original code path still handles the Py_DECREFs.
> This is the while loop at the end of call_function().

Can you please elaborate? For METH_O and METH_ARGS,
the arguments have already been popped off the stack,
and the "What does this do" loop only pops off the
function itself. So (without testing) methinks your
code currently leaks references.

Regards,
Martin


More information about the Python-Dev mailing list