What's the public API alternative to _PyObject_GC_IS_TRACKED()?
Inada Naoki
songofacandy at gmail.com
Tue Dec 28 01:58:09 EST 2021
On Tue, Dec 28, 2021 at 3:31 AM Marco Sulla
<Marco.Sulla.Python at gmail.com> wrote:
>
> I need it since I'm developing an immutable dict. And in dict that
> function is used.
>
> I do not understand why there's no public API for that function. It
> seems very useful.
>
I think it is useful only for optimization based on *current* Python internals.
That's why it is not a public API. If we expose it as public API, it
makes harder to change Python's GC internals.
--
Inada Naoki <songofacandy at gmail.com>
More information about the Python-list
mailing list