[docs] https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions

Goldberg, Arthur P arthur.p.goldberg at mssm.edu
Sat Jan 26 11:03:28 EST 2019


I am suggesting an improvement. The page says “As you can see, the finally clause is executed in any event”. However the example above this sentence does not illustrate what it says.
It would be better to have an example that includes a raise, break, continue, or return in the try before finally. I think it would be best to include 2 of these, probably raise and return. I can create an example if you’d like.

Regards
Arthur

Arthur Goldberg, PhD
Associate Professor of Genetics and Genomic Sciences
Institute for Data Science and Genomic Technology
Mount Sinai School of Medicine
1255 Fifth Ave., Suite C-2
New York, NY 10029
646 526 5020
Karr Lab
Arthur.Goldberg at mssm.edu<mailto:Arthur.Goldberg at mssm.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190126/f630f48d/attachment-0001.html>


More information about the docs mailing list