On 21 mars 01:07, Fletcher Johnson wrote: > Did you want it to warn on all types that are always true? > I'm looking at the types here in '6.1 Truth Value Testing'-> > http://docs.python.org/library/stdtypes.html and it says that "All > other values are considered true — so objects of many types are > always true." > > or would it be fine to only test those elementary types (the ones in > the bullet point listing)?
I'm not saying that at all. To me the conclusion of this discussion is that we only want to check the "assert a, msg" vs "assert (a, msg)" confusion, not true of false value at all. -- 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