On Wed, 29 Dec 2021 at 07:46, Inada Naoki <songofaca...@gmail.com> wrote: > You are right. I thought PyObject_GC_Track() can be used to tracked > objects because PyObject_GC_Untrack() can be used untracked object. > I think there is no enough reason for this asymmetry. > > Additionally, adding PyObject_GC_IsTracked() to public API will not > bother future Python improvements. > If Python changed its GC to mark-and-sweep, PyObject_GC_IsTracked() > can return true always.
I think you are right :) -- https://mail.python.org/mailman/listinfo/python-list