Am Montag 16 August 2010, 14:30:47 schrieb Klaus Kopec:
> I use statements like "a[i, :i] = 0" to slice multi-dimensional numpy
> arrays. Checking these
> statements with pylint leaves me with the choice of getting "E203
> whitespace before ':'" if
> I put a space before ':' and "E231 missing whitespace after ','" if I
> don't put a space there.

You should write a[i][:i]!

Just kidding.  That's an interesting case where two sensible rules clash.

IMHO the E231 check should be fixed (or an alternative offered or the like) 
such that the whitespace is not required within brackets at all.

Anyhow, my 2 cents.
  Hans
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to