GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: Re-raise through try/except drops the exec'd code's frame from the polyglot stack trace · Issue #1295 · oracle/graalpython Open DescriptionFollow-up to #1186 (fixed in 2247966). SummaryWith GraalPy 25.5.5.0.3, a Python exception re-raised through Reproducerhttps://github.com/BigMichi1/graalpy-reraise-stacktrace, String support = String.join("\n", "def with_except(code):", " try:", " exec(code, {})", " except BaseException:", " raise", "def plain(code):", " exec(code, {})"); try (Context context = Context.create("python")) { context.eval(Source.newBuilder("python", support, "support.py").build()); for (String fn : new String[] {"plain", "with_except"}) { try { context.getBindings("python").getMember(fn).execute("x = 1\nundefined_name"); } catch (PolyglotException e) { System.out.println(fn + ":"); for (PolyglotException.StackFrame f : e.getPolyglotStackTrace()) { if (f.isGuestFrame()) System.out.println(" " + f); } } } } Actual (25.5.5.0.3, with and without
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |