On 18 mars 13:46, Maarten ter Huurne wrote: > > I'm not a Python guru, but those seem more idiomatic > > to me. Still, I agree that asserting a tautology seems somehow 'worse' > > than asserting a contradiction, since the latter actually has some > > effect. > > Unlike the "assert (a, b)" case, it's very unlikely that "assert False" is > written accidentally when the programmer meant something else. So warning > about it is unlikely to make anyone happy, while it would make me unhappy.
I agree. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects