Skip to content

PyObject_CallOneArg? #118

Answered by wjakob
tjstum asked this question in Q&A
Jan 30, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @tjstum. The code that you see right now is the result of quite a bit of evolution, and initially PyObject_CallOneArg was not used because it's unavailable on Python 3.8 (before the ifdef you mentioned was added). Looking at the implementation of PyObject_CallOneArg in CPython, I don't think there is a performance advantage over just directly using PyObject_VectorCall. This explains why it was not changed at some point.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tjstum
Comment options

Answer selected by tjstum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants