On Fri, Jul 15, 2011 at 7:47 PM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: <snip> > Assertions are for testing internal program logic, not for validation. > > (I don't even like using assert for testing. How do you test your code with > assertions turned off if you use assert for testing?)
I would think that would only matter if either the asserted expressions caused side-effects or there was nontrivial logic in the AssertionError handler, which would indicate a rather screwy codebase and point to a possible PEBKAC issue that testing cannot hope to remedy. Cheers, Chris -- http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list