2 ms·
No. Your example is not similar to what we are discussing here class A: def __del__(self): 1/0 There is no way to catch that exception
by guappa 2y ago
No. Your example is not similar to what we are discussing here
class A:
def __del__(self):
1/0
There is no way to catch that exception. It will just print a warning with the exception but it can't be handled.