From f7283bd2f05e848c88a07e0b4fef11d7a9b0aa9b Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sat, 16 Nov 2024 10:35:51 +0000 Subject: [PATCH 1/5] PEP 765: add discussion link --- peps/pep-0765.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index 104a1b8210f..8bf09c382a3 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -1,12 +1,13 @@ PEP: 765 Title: Disallow return/break/continue that exit a finally block Author: Irit Katriel , Alyssa Coghlan -Discussions-To: https://discuss.python.org/t/an-analysis-of-return-in-finally-in-the-wild/70633 +Discussions-To: https://discuss.python.org/t/pep-765-disallow-return-break-continue-that-exit-a-finally-block/71348 Status: Draft Type: Standards Track Created: 15-Nov-2024 Python-Version: 3.14 Post-History: `09-Nov-2024 `__, + `16-Nov-2024 __`, Abstract ======== From 44b03c45d31b51c7b24298e5f79ce9cada6aabb6 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sat, 16 Nov 2024 10:41:06 +0000 Subject: [PATCH 2/5] tweak sentence --- peps/pep-0765.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index 8bf09c382a3..9750add1e67 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -7,7 +7,7 @@ Type: Standards Track Created: 15-Nov-2024 Python-Version: 3.14 Post-History: `09-Nov-2024 `__, - `16-Nov-2024 __`, +`16-Nov-2024 __`, Abstract ======== @@ -67,7 +67,7 @@ A recent `analysis of real world code This new data indicates that it would benefit Python's users if Python itself moved them away from this harmful feature. -`One of the arguments brought up +One of the arguments brought up in `the 601 PEP discussion `__ was that language features should be orthogonal, and combine without context-based restrictions. However, in the meantime :pep:`654` has From 7a76c0f99474d23cecdea7d3153c9dbc3accf4b8 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sat, 16 Nov 2024 10:42:36 +0000 Subject: [PATCH 3/5] typo --- peps/pep-0765.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index 9750add1e67..1fe45acf3b9 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -7,7 +7,7 @@ Type: Standards Track Created: 15-Nov-2024 Python-Version: 3.14 Post-History: `09-Nov-2024 `__, -`16-Nov-2024 __`, +`16-Nov-2024 `__, Abstract ======== From b719713c0bdc4d31409f8346affae7c8186d9e1c Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Sat, 16 Nov 2024 11:06:15 +0000 Subject: [PATCH 4/5] whitespace --- peps/pep-0765.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index 1fe45acf3b9..f10331a1b64 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -7,7 +7,7 @@ Type: Standards Track Created: 15-Nov-2024 Python-Version: 3.14 Post-History: `09-Nov-2024 `__, -`16-Nov-2024 `__, + `16-Nov-2024 `__, Abstract ======== From 344673af2b19a3620c0a86f7375e82a9cf716f9f Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Sat, 16 Nov 2024 11:39:29 +0000 Subject: [PATCH 5/5] Apply suggestions from code review Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- peps/pep-0765.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0765.rst b/peps/pep-0765.rst index f10331a1b64..f2036b0b1a8 100644 --- a/peps/pep-0765.rst +++ b/peps/pep-0765.rst @@ -7,7 +7,7 @@ Type: Standards Track Created: 15-Nov-2024 Python-Version: 3.14 Post-History: `09-Nov-2024 `__, - `16-Nov-2024 `__, + `16-Nov-2024 `__, Abstract ======== @@ -67,7 +67,7 @@ A recent `analysis of real world code This new data indicates that it would benefit Python's users if Python itself moved them away from this harmful feature. -One of the arguments brought up in `the 601 PEP discussion +One of the arguments brought up in `the PEP 601 discussion `__ was that language features should be orthogonal, and combine without context-based restrictions. However, in the meantime :pep:`654` has