How to implement freelists in dict 3.10 for previous versions?

Marco Sulla Marco.Sulla.Python at gmail.com
Wed Dec 29 05:24:16 EST 2021


I noticed that now freelists in dict use _Py_dict_state. I suppose
this is done for thread safety.

I would implement it also for a C extension that uses CPython < 3.10.
How can I achieve this?


More information about the Python-list mailing list