<div dir="auto">I don't think the language definition should be judgmental here. The semantics are unambiguous.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 28, 2017 11:38 AM, "Serhiy Storchaka" <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">28.12.17 16:38, Guido van Rossum Ð¿Ð¸ÑˆÐµ:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks to me the prohibition was to prevent a crash. It makes more sense to fix it.<br>
</blockquote>
<br>
The crash can be fixed by just removing the check after finishing issue17611.<br>
<br>
But is there any use case for 'continue'/'break'/'return' inside 'finally' clause? The code like<br>
<br>
  Â  try:<br>
  Â  Â  Â  return 1<br>
  Â  finally:<br>
  Â  Â  Â  return 2<br>
<br>
or<br>
<br>
  Â  try:<br>
  Â  Â  Â  continue<br>
  Â  finally:<br>
  Â  Â  Â  break<br>
<br>
looks at least confusing. Currently 'break' and 'return' are never used inside 'finally' clause in the stdlib. I would want to see a third-party code that uses them.<br>
<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/guido%<wbr>40python.org</a><br>
</blockquote></div></div>