[issue27810] Add METH_FASTCALL: new calling convention for C functions

Serhiy Storchaka report at bugs.python.org
Mon Sep 12 09:52:15 EDT 2016


Serhiy Storchaka added the comment:

Could you please wrap "#define METH_FASTCALL  0x0080" with "#ifndef Py_LIMITED_API"/"#endif"? I think this method still is not stable, and we shouldn't encourage using it in third-party extensions.

I would use two methods: just METH_FASTCALL and METH_FASTCALL|METH_KEYWORDS. The former is simpler and more stable, it takes just an array of positional parameters. The latter takes also keyword arguments, and the format of passing keyword arguments may be changed.

----------

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


More information about the Python-bugs-list mailing list