[issue29286] Use METH_FASTCALL in str methods

STINNER Victor report at bugs.python.org
Wed Feb 1 11:45:08 EST 2017


STINNER Victor added the comment:

str type still has a few methods using METH_VARARGS (slower than METH_FASTCALL):

* count()
* find()
* index()
* rfind()
* rindex()
* startswith()
* endswith()
* format()

Maybe I will propose a change later to convert these methods to Argument Clinic, but I consider that the initial issue "Currently, Argument Clinic doesn't use METH_FASTCALL for these methods, but METH_VARARGS" is now fixed, so I close the issue.

Thanks Naoki and Serhiy.

----------
resolution:  -> fixed
status: open -> closed

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


More information about the Python-bugs-list mailing list