What's the public API alternative to _PyObject_GC_IS_TRACKED()?

Marco Sulla Marco.Sulla.Python at gmail.com
Mon Dec 27 13:30:12 EST 2021


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.

On Sun, 26 Dec 2021 at 17:28, Barry Scott <barry at barrys-emacs.org> wrote:
>
>
>
> > On 26 Dec 2021, at 13:48, Marco Sulla <Marco.Sulla.Python at gmail.com> wrote:
> >
> > I have to use _PyObject_GC_IS_TRACKED(). It can't be used unless you
> > define Py_BUILD_CORE. I want to avoid this. What macro or function can
> > substitute it?
>
> Why is this needed by your code? Surely the GC does its thing as an implementation detail of python.
>
> Barry
>
>
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
>


More information about the Python-list mailing list