Hi, 2009/11/5 James Lingard <j...@aristanetworks.com>: > A bug I have encountered several times in Python code is writing: > > assert( x, "x should have been True" ) > > rather than: > > assert x, "x should have been True" > > It would be great if pylint could catch this error.
note that python2.6 already emits a warning: >>> def f(x): ... assert( x, "x should have been True" ) ... <stdin>:2: SyntaxWarning: assertion is always true, perhaps remove parentheses? -- Amaury Forgeot d'Arc _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects