[issue29507] Use FASTCALL in call_method() to avoid temporary tuple

INADA Naoki report at bugs.python.org
Thu Feb 9 18:27:27 EST 2017


INADA Naoki added the comment:

Thanks for finishing my draft patch, Victor.

callmetohd2.patch is same trick for PyObject_CallMethod* APIs in abstract.c.
It fixes segv in callmethod.patch.
And APIs receiving format string can do same trick when format is empty too.

As I grepping "PyObject_CallMethod", there are many format=NULL callers.

----------
Added file: http://bugs.python.org/file46615/callmethod2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29507>
_______________________________________


More information about the Python-bugs-list mailing list