[Python-projects] Missing space surrounding some operators
Sylvain Thénault
sylvain.thenault at logilab.fr
Thu Jul 20 10:38:38 CEST 2006
On Tuesday 18 July à 15:55, skip at pobox.com wrote:
>
> Given this simple function:
>
> def f(a, b):
> print a%b
> print a//b
> print a**b
> print a*b
>
> pylint 0.11 complains that there is no space surrounding the mod operator,
> but not the //, ** or * operators. Seems like pylint needs to brush up on
> its Python operators. ;-)
hum, currently pylint is enforcing spaces around (aug)assigment, comparisons and
the mod operators. It doesn't enforce this for binary/mathematical operators. To be more
consistant, it should probably either stop complaining for the mod operator or complaining for
binary/mathematical operators. I prefer the first solution personaly, and you?
Of course this should be configurable, but I've not yet found an acceptable solution to allow the
user to specify this...
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list