This PEP explicitly sticks with the existing PyModuleDef_Slot
.
Using intptr_t
would mean either changing PyModuleDef_Slot
, or making PyModExport_*
use a new slot type.
I’d like to do the latter, and solve a few more issues with slots too, but it’s a more controversial proposal. See this topic.