On Thursday 18 March 2010, Sylvain Thénault wrote:

> IMO we should:
> * *not infer anything here*
> * check for 2-uple and warn about potential misspelling of the assert
> statement * check for literal true (eg True, not empty container, non
> zero number, etc..) of false (False, None, 0, etc...) expression and
> warn about always/never verified assertion

Please don't warn on literal False, since I use that quite often in 
situations like this:

        if a.hasSomeProperty():
                doSomething()
        elif a.hasSomeOtherProperty():
                doSomethingElse()       
        else:
                assert False, 'a is in an invalid state'

Bye,
                Maarten
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to