mirror of
https://github.com/python/cpython.git
synced 2026-01-22 15:18:52 +00:00
gh-141070: Rename PyUnstable_Object_Dump to PyObject_Dump (GH-142848)
This commit is contained in:
parent
780e9692fe
commit
19e64afddf
11 changed files with 18 additions and 17 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue