Skip to content

Commit 8971a6f

Browse files
committed
assign pep number. Fix build errors
1 parent 0450fe4 commit 8971a6f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ peps/pep-0760.rst @pablogsal @brettcannon
641641
peps/pep-0761.rst @sethmlarson @hugovk
642642
peps/pep-0762.rst @pablogsal @ambv @lysnikolaou @emilyemorehouse
643643
peps/pep-0763.rst @dstufft
644+
peps/pep-0765.rst @iritkatriel @ncoghlan
644645
# ...
645646
peps/pep-0777.rst @warsaw
646647
# ...
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PEP: 9999
1+
PEP: 765
22
Title: Disallow return/break/continue that exit a finally block
33
Author: Irit Katriel <irit@python.org>, Alyssa Coghlan <ncoghlan@gmail.com>
44
Discussions-To: https://discuss.python.org/t/an-analysis-of-return-in-finally-in-the-wild/70633
@@ -50,15 +50,15 @@ and flake8-bugbear [4]_ flag them as a problem.
5050
Rationale
5151
=========
5252

53-
A recent analysis of real world code [5]_ shows that::
53+
A recent analysis of real world code [5]_ shows that:
5454

5555
- These features are rare (2 per million LOC in the top 8000 PyPI
56-
packages, 4 per million LOC in a random selection of packages).
57-
This could be thanks to the linters that flag this pattern.
56+
packages, 4 per million LOC in a random selection of packages).
57+
This could be thanks to the linters that flag this pattern.
5858
- Most of the usages are incorrect, and introduce unintended
59-
exception-swallowing bugs.
59+
exception-swallowing bugs.
6060
- Code owners are typically receptive to fixing the bugs, and
61-
find that easy to do.
61+
find that easy to do.
6262

6363
This new data indicates that it would benefit Python's users if
6464
Python itself moved them away from this harmful feature.

0 commit comments

Comments
 (0)