The .tp_print field must be present for Python < 3.8 in PyTypeManager.

This commit is contained in:
Jean-Paul Chaput 2021-10-15 19:35:03 +02:00
parent 7cb8e20644
commit 4b9c095ae9
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,9 @@ extern "C" {
, .tp_basicsize = sizeof(PyOneVoid)
, .tp_itemsize = 0
, .tp_dealloc = NULL
#if PY_VERSION_HEX < 0x03080000
, .tp_print = NULL
#endif
, .tp_getattr = NULL
, .tp_setattr = NULL
, .tp_as_async = NULL