Message347172
What do you think about macro like this?
#define _PyObject_CALL_WITH_ARGS(func, ...) \
_PyObject_Vectorcall(func, (PyObject*[]){NULL, __VA_ARGS__} + 1, \
sizeof((PyObject*[]){__VA_ARGS__})/sizeof(PyObject*) | PY_VECTORCALL_ARGUMENTS_OFFSET, \
NULL)
Pros: it can be used for 2 or 3 arguments too.
Cons: readability... |
|
Date |
User |
Action |
Args |
2019-07-03 00:47:37 | methane | set | recipients:
+ methane, vstinner, jdemeyer |
2019-07-03 00:47:37 | methane | set | messageid: <1562114857.76.0.546511757047.issue37483@roundup.psfhosted.org> |
2019-07-03 00:47:37 | methane | link | issue37483 messages |
2019-07-03 00:47:37 | methane | create | |
|