On Thu, 13 Jun 2019 02:07:54 +0200 Victor Stinner email@example.com wrote:
For PyCodeOptions: does it contain posonlyargcount? If not, how do you pass posonlyargcount. I'm not sure if you plan to handle the backward compatibility.
The idiom to use it could be:
PyCodeOptions opts = PyCodeOptions_INIT; // set attributes here PyObject* code_obj = PyCode_NewEx(opts);
So you can change the PyCodeOptions_INIT macro when some new fields are added.