Serhiy Storchaka <[email protected]> added the comment:
No, I say that
with suppress():
...
is equivalent to
try:
...
except ():
pass
or
try:
...
except BaseException as err:
if not isinstance(err, ()):
raise
If you want to suppress all exceptions (it is not very clever idea), use
suppress(BaseException).
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46819>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com