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 xdegaye
Recipients cstratak, eitan.adler, martin.panter, miss-islington, pmpp, serhiy.storchaka, siddhesh, vstinner, xdegaye, ztane
Date 2018-05-27.14:27:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> But the problem is that additional flags can be used, e.g. METH_CLASS.

Right, says: "The individual flags indicate either a calling convention or a binding convention". This may be overcome by introducing another macro with 2 arguments, the second argument being used to set the binding convention flag:

#define SET_METH_VARARGS_KEYWORDS_FLAG(func, flag) \
    (PyCFunction)(void *)(PyCFunctionWithKeywords)func, METH_VARARGS|METH_KEYWORDS|flag

The refactoring would be quite large though.
Date User Action Args
2018-05-27 14:27:52xdegayesetrecipients: + xdegaye, vstinner, pmpp, martin.panter, serhiy.storchaka, ztane, eitan.adler, siddhesh, cstratak, miss-islington
2018-05-27 14:27:52xdegayesetmessageid: <>
2018-05-27 14:27:52xdegayelinkissue33012 messages
2018-05-27 14:27:52xdegayecreate