Are these completely equivalent? def foo(thing):
assert(thing > 0), "Thing must be greater than zero"
def foo(thing):
if not (thing > 0): raise AssertionError("Thing must be greater than
zero")
Other than the fact that the assertion can be turned off
with -O?
Thanks,
Tobiah
--
https://mail.python.org/mailman/listinfo/python-list
