[issue37483] Add PyObject_CallOneArg()
Jeroen Demeyer
report at bugs.python.org
Wed Jul 3 05:34:11 EDT 2019
Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:
> _PyObject_CALL_WITH_ARGS(func, PyDict_GetItem(d, key)); // PyDict_GetItem(d, key) is called twice.
That's pretty bad and in my opinion a good reason to reject this idea.
> If two or more arguments are not common, I prefer _PyObject_CallOneArg to macro.
I posted some counts at https://mail.python.org/archives/list/capi-sig@python.org/message/3I76R27YMFSKB5JQIM3E4NA3BECVTZHP/
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37483>
_______________________________________
More information about the Python-bugs-list
mailing list