From ada319bb6d0ebcc68d3e0ef2b4279ea061877ac8 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 29 May 2019 22:12:38 +0200 Subject: bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944) It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags. This will reduce the risk of running out of bits in the 32-bit tp_flags value. --- Modules/gcmodule.c | 1 - 1 file changed, 1 deletion(-) (limited to 'Modules/gcmodule.c') diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 3b15c7ba5b..0cf00e8396 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -858,7 +858,6 @@ finalize_garbage(PyGC_Head *collectable) PyObject *op = FROM_GC(gc); gc_list_move(gc, &seen); if (!_PyGCHead_FINALIZED(gc) && - PyType_HasFeature(Py_TYPE(op), Py_TPFLAGS_HAVE_FINALIZE) && (finalize = Py_TYPE(op)->tp_finalize) != NULL) { _PyGCHead_SET_FINALIZED(gc); Py_INCREF(op); -- cgit v1.2.1