On Fri, Mar 7, 2014 at 3:11 AM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote:
> > Assertions are not bad! They're just misunderstood and abused. > You should read this guy's blog post on when to use assert: > > http://import-that.dreamwidth.org/676.html Nice article. BTW, what about: if value >= 3: raise AssertionError('value must be >= 3') ? -- https://mail.python.org/mailman/listinfo/python-list