Python: assert vs throw AssertionError #974
AlexanderLanin
started this conversation in
Operational Community
Replies: 1 comment 2 replies
-
The assertion error has cleaner output for sure. I however in my opinion like asserts a lot, especially using them frequently if possible to assert worldview at points where it makes no sense to continue / recover if the worldview you are expecting at that moment is not met. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
assert output:
throw output:
Beta Was this translation helpful? Give feedback.
All reactions