On Wed, 18 Jan 2017 08:44:29 +0100 Victor Stinner <victor.stin...@gmail.com> wrote: > > My patch adds Py_TPFLAGS_HAVE_FINALIZE and Py_TPFLAGS_HAVE_FASTCALL to > Py_TPFLAGS_DEFAULT. So all modules compiled with Python 3.7 will > announce that they have tp_finalize and tp_fastcall fields, even if > they are NULL. I don't know why this change wasn't done before for > tp_finalize.
I don't think I thought about that idea at the time. tp_finalize doesn't benefit many extension types, so it's not a huge burden to add a FLAGS value for the few cases where you want to use it. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com