Zachary Ware <zachary.w...@gmail.com> added the comment:

I'm -1 on this suggestion; consider the following:

```
exceptions_to_suppress = []
if some_condition:
    exceptions_to_suppress.append(ValueError)

with contextlib.suppress(*exceptions_to_suppress):
    do_a_thing()
```

This seems a reasonable case to support and would require quite some gymnastics 
to continue supporting while also warning on an empty set.

----------
nosy: +ncoghlan, yselivanov, zach.ware

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46819>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to