From 244924efbed9aef664e41618102d73d68e282ed7 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Tue, 3 Oct 2023 14:53:02 -0600 Subject: [PATCH] Revert "gh-76785: Print the Traceback from Interpreter.run() (gh-110248)" This reverts commit 6bc889aedc11cc8e0b9f57948a3d528ad2685497. --- Modules/_xxsubinterpretersmodule.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 33feae8ee82ff2..700282efb8c619 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -450,10 +450,6 @@ _run_script(PyInterpreterState *interp, const char *codestr, "RunFailedError: script raised an uncaught exception (%s)", failure); } - // XXX Instead, store the rendered traceback on sharedexc, - // attach it to the exception when applied, - // and teach PyErr_Display() to print it. - PyErr_Display(NULL, excval, NULL); Py_XDECREF(excval); if (errcode != ERR_ALREADY_RUNNING) { _PyInterpreterState_SetNotRunningMain(interp); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy