Except with empty tuple
On 2019-10-16 15:03, Antoon Pardon wrote:
> I would like to verify I understand correctly.
> It is about the following construct:
> except ():
> As far as I understand and my tests seem to confirm this, this
> is equivallent to just
> Am I correct or did I miss something?
What if there's an exception?
>>> def test_1():
... raise ValueError()
... except ():
>>> def test_2():
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 4, in test_1
So, no, it's not equivalent.