This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients docs@python, graingert, serhiy.storchaka, terry.reedy
Date 2020-08-22.05:21:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598073667.18.0.308655935734.issue41576@roundup.psfhosted.org>
In-reply-to
Content
It is a tutorial. The purpose of this part is documenting the bare except clause. It cannot be done without using a bare except in example.

There is nothing wrong with a bare except if it used properly (e.g. if the caught exception is reraised). In any case "except BaseException" is not any better, because it is equivalent to a bare except.

Note also that PR 21917 introduces an error: instead of printing the type of exception it prints the stringified exception itself (in some case it is an empty string).
History
Date User Action Args
2020-08-22 05:21:07serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, docs@python, graingert
2020-08-22 05:21:07serhiy.storchakasetmessageid: <1598073667.18.0.308655935734.issue41576@roundup.psfhosted.org>
2020-08-22 05:21:07serhiy.storchakalinkissue41576 messages
2020-08-22 05:21:07serhiy.storchakacreate