I love assert

Marko Rauhamaa marko at pacujo.net
Wed Nov 12 23:34:49 CET 2014

Anton <anschatten at gmail.com>:

> I can see how assert statement can point out what should not happen,
> can you give an example when a single assert statement would explain
> why it should never happen?

Asserts don't communicate justifications. They simply assert something
to be the case, period. Any other elaborations must go in comments.


More information about the Python-list mailing list