4 ms·
The biggest problem with assertions in Python code is that they throw a generic AssertionError when you should be throwing a custom exception class instead. You
by philipov 8y ago
The biggest problem with assertions in Python code is that they throw a generic AssertionError when you should be throwing a custom exception class instead. You can't catch the right error (and nothing but the right error) that way.