Hi Jeroen,

My initial plan was to hide it to ensure that nobody uses it, wait until the code and the API is battle-tested, and then propose a public API. I was a good idea to not make it public in the first place, since Python 3.7 modified FASTCALL deeply to not include keyword parameters by default (need METH_FASTCALL | METH_KEYWORDS).

But Cython decided to use it, it was not well hidden enough :-) Then the PEP 590 did what I planned to do: polish the API and make it public (good job! it optimizes more cases than FASTCALL, especially methods).

Well, yes, it should now be documented, since it's already in used in the wild. We may deprecate it and document that VECTORCALL should be preferred.

Victor

Le 13/06/2019 à 09:29, Jeroen Demeyer a écrit :
Hello,

has the time come to document METH_FASTCALL? This was introduced in Python 3.6 for positional arguments only and extended in Python 3.7 to support also keyword arguments. No changes have been made since then.

The vectorcall protocol (PEP 590) uses a calling convention based on METH_FASTCALL, so I expect METH_FASTCALL to stay as it is. PEP 590 also means that CPython is now even more than before optimized for METH_FASTCALL instead of METH_VARARGS.

Whether or not METH_FASTCALL should be added to the limited API is another question. I'm only talking about adding it to the documentation.


Jeroen.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/RDSZ3JUQ6RK3CYVWXA2ESW7KF3HND3B7/
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5DX6SMA3QAG4367S4KVAH3JT4V4W2W45/

Reply via email to