gh-141070: Rename PyUnstable_Object_Dump to PyObject_Dump (GH-142848)

This commit is contained in:
Peter Bierma 2026-01-16 09:19:43 -05:00 committed by GitHub
parent 780e9692fe
commit 19e64afddf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 18 additions and 17 deletions

View file

@ -2243,7 +2243,7 @@ _PyGC_Fini(PyInterpreterState *interp)
void
_PyGC_Dump(PyGC_Head *g)
{
PyUnstable_Object_Dump(FROM_GC(g));
PyObject_Dump(FROM_GC(g));
}

View file

@ -1175,7 +1175,7 @@ _PyErr_Display(PyObject *file, PyObject *unused, PyObject *value, PyObject *tb)
}
if (print_exception_recursive(&ctx, value) < 0) {
PyErr_Clear();
PyUnstable_Object_Dump(value);
PyObject_Dump(value);
fprintf(stderr, "lost sys.stderr\n");
}
Py_XDECREF(ctx.seen);
@ -1193,14 +1193,14 @@ PyErr_Display(PyObject *unused, PyObject *value, PyObject *tb)
PyObject *file;
if (PySys_GetOptionalAttr(&_Py_ID(stderr), &file) < 0) {
PyObject *exc = PyErr_GetRaisedException();
PyUnstable_Object_Dump(value);
PyObject_Dump(value);
fprintf(stderr, "lost sys.stderr\n");
PyUnstable_Object_Dump(exc);
PyObject_Dump(exc);
Py_DECREF(exc);
return;
}
if (file == NULL) {
PyUnstable_Object_Dump(value);
PyObject_Dump(value);
fprintf(stderr, "lost sys.stderr\n");
return;
}