Best practice for using assert?
Is there a performance or code maintenance issue with using assert as part of the standard code instead of using it just for debugging purposes? Is assert x >= 0, ‘x is less than zero’ better or worse than if x < 0: raise Exception, ‘x is less than zero’ Also, is there any way … Read more