File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -641,6 +641,7 @@ peps/pep-0760.rst @pablogsal @brettcannon
641641peps /pep-0761.rst @ sethmlarson @ hugovk
642642peps /pep-0762.rst @ pablogsal @ ambv @ lysnikolaou @ emilyemorehouse
643643peps /pep-0763.rst @ dstufft
644+ peps /pep-0765.rst @ iritkatriel @ ncoghlan
644645# ...
645646peps /pep-0777.rst @ warsaw
646647# ...
Original file line number Diff line number Diff line change 1- PEP: 9999
1+ PEP: 765
22Title: Disallow return/break/continue that exit a finally block
33Author: Irit Katriel <irit@python.org>, Alyssa Coghlan <ncoghlan@gmail.com>
44Discussions-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.
5050Rationale
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
6363This new data indicates that it would benefit Python's users if
6464Python itself moved them away from this harmful feature.
You can’t perform that action at this time.
0 commit comments