From ca77e0555695cb7a5dc15fb8dbd3c89267a5cc81 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Mon, 10 May 2021 17:43:43 +0100 Subject: [PATCH 1/2] Mention zero-cost exeptions in whats-new for 3.11 --- Doc/whatsnew/3.11.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 464a97ef6e01eb..5c9c25fec87cf1 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -95,6 +95,8 @@ Optimizations fast as corresponding f-string expression. (Contributed by Serhiy Storchaka in :issue:`28307`.) +* "Zero-cost" exceptions are implemented. The cost of ``try`` statements is + almost eliminated when no exception is raised. Build and C API Changes ======================= From 31b01d0589044cede322b31ecee32bbb806fa868 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Mon, 10 May 2021 17:52:33 +0100 Subject: [PATCH 2/2] Add link to issue --- Doc/whatsnew/3.11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 5c9c25fec87cf1..dfb85e374439f3 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -97,6 +97,7 @@ Optimizations * "Zero-cost" exceptions are implemented. The cost of ``try`` statements is almost eliminated when no exception is raised. + (Contributed by Mark Shannon in :issue:`40222`.) Build and C API Changes =======================