What are the big differences between raise Assertionerror and assert to build in a \"fault\". What are the effects on the code ? and is one or the other more pythonic in a w
Those two code examples are equivalent, with the exception that assert statements can be globally disabled with the -O command-line flag.
assert
-O