gh-112075: Remove _PyObject_SetManagedDict() function by vstinner · Pull Request #139737 · python/cpython

The _PyObject_SetManagedDict() function is private, not documented, and not tested.

It's used by _PyObject_SetDict() which belongs to the internal C API and is not exported.

A code search in PyPI top 15,000 projects did not find any project using it.

The function was added by commit 8b541c0.

@DinoV: Did you add this function to the public C API on purpose?

cc @colesbury who modified the function.