Email [Python-projects] C0323: "no space before %"

from
Francisco Borges <f.borges at rug dot nl>
subject
[Python-projects] C0323: "no space before %"
date
2005/06/15 10:27
Hello again,

The biggest disagreement I have with pylint is that it's not happy with
my use of no spaces before '%' when formatting strings.

Uses of %:

[1]: "formatting strings"

log.info("Bla bla %i" %size) ## or
log.info("bla bla %i %i" %(i, j))

[2]: "integer division rest"

rest = mylist % size

-----------

Was C0323 intended to handle both cases or only [2]? If is it for both
cases, would you consider making this configurable??

Am I the only person that **never** use spaces in [1]?

BTW, running pylint 0.7.0 here...

Cheers,
-- 
Francisco Borges
Alfa Informatica - RuG

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


has reply