[issue41576] document BaseException in favour of bare except in error tutorial

Thomas Grainger report at bugs.python.org
Sat Aug 22 06:01:41 EDT 2020


Thomas Grainger <tagrain at gmail.com> added the comment:

The purpose of this tutorial section is to document how to catch all types of exceptions and extract the type and value. When this is required, `BaseException as err:` is the preferred approach.

This document still mentions the alternative approach so that readers will know what it means when they encounter it, and know to upgrade it to the py2.4+ syntax

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41576>
_______________________________________


More information about the Python-bugs-list mailing list