hello

i wonder if pylint could be made to spot the following error

if ans.lower in ["yes", "y"]:

where the function is compared, rather than calling the function and
comparing the result.

maybe it could check for any comparison between a function and a
literal.

thanks

sam

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

Reply via email to