design of python: why is assert a statement and not a function?
design of python: why is assert a statement and not a function? Question: In Python, assert is a statement, and not a function. Was this a deliberate decision? Are there any advantages to having assert be a statement (and reserved word) instead of a function? According to the docs, assert expression1, expression2 is expanded to …