We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8276f91 commit 3a4b484Copy full SHA for 3a4b484
cpybuilder.py
@@ -254,7 +254,11 @@ def c_initializer(self):
254
result += ' sizeof(%(struct_name)s), /*tp_basicsize*/\n' % self.__dict__
255
result += ' 0, /*tp_itemsize*/\n'
256
result += self.c_ptr_field('tp_dealloc')
257
+ result += '#if PY_VERSION_HEX >= 0x03080000\n'
258
+ result += ' 0, /*tp_vectorcall_offset*/\n'
259
+ result += '#else\n'
260
result += self.c_ptr_field('tp_print')
261
+ result += '#endif\n'
262
result += self.c_ptr_field('tp_getattr')
263
result += self.c_ptr_field('tp_setattr')
264
result += '#if PY_MAJOR_VERSION < 3\n' % self.__dict__
0 commit comments