Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41576> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com