This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients jdemeyer, methane, vstinner
Date 2019-07-03.00:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562114857.76.0.546511757047.issue37483@roundup.psfhosted.org>
In-reply-to
Content
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...
History
Date User Action Args
2019-07-03 00:47:37methanesetrecipients: + methane, vstinner, jdemeyer
2019-07-03 00:47:37methanesetmessageid: <1562114857.76.0.546511757047.issue37483@roundup.psfhosted.org>
2019-07-03 00:47:37methanelinkissue37483 messages
2019-07-03 00:47:37methanecreate