When I've looked to some tutorial as to how to write an generator in C API I've found a blogpost that used following way to initialize Python type object head:
Indeed, in the newer examples in docsNULL is always used. The warning that what we’d like to write is PyVarObject_HEAD_INIT(&PyType_Type, 0) was dropped in documentation since 3.6.
Resolving https://github.com/Nykakin/chompjs/issues/48
When I've looked to some tutorial as to how to write an generator in C API I've found a blogpost that used following way to initialize Python type object head:
According to this this should be:
Indeed, in the newer examples in docs
NULL
is always used. The warning thatwhat we’d like to write is PyVarObject_HEAD_INIT(&PyType_Type, 0)
was dropped in documentation since 3.6.