bpo-40989: Move _Py_NewReference() to the internal C API by vstinner · Pull Request #20904 · python/cpython

@vstinner

Remove the _Py_NewReference() and _Py_ForgetReference() functions
from the public C API: move them to the internal C API.

Move with_tp_del() test function from the _testcapi module to the
_testinternalcapi module.