• Pablo Galindo's avatar
    Explicitly initialize tp_print in Python 3.8 (GH-3171) · baa08c56
    Pablo Galindo authored
    Explicitly initialize tp_print in Python 3.8
    
    When compiling cython-generated extension modules in Python3.8rc1
    this error is emitted by the compiler:
    
      _ext.cpp:8104:1: error: missing initializer for member ‘_typeobject::tp_print’ [-Werror=missing-field-initializers]
    
    The reason is that Python3.8 moved the tp_print slot (d917cfe4051) to
    the end of the _typeobject struct and reused the original position for
    tp_vectorcall_offset. The current generated code does not initialize the
    deprecated tp_print slot that was moved to the end of the struct.
    baa08c56
TypeSlots.py 36.1 KB