* I think people with maths backgrounds are prone to wanting to use them! * Thanks for the $ tip ... I was led astray by the default not having a trailing $ ... * So for me, who wants to be able to use i,j,k as (possibly unused) loop indices, I think I really need the following ...
dummy-variables-rgx=(_||i$|j$|k$) => allows usual idiom of _name, or just strictly "i", "j", "k" as single letter indices * My understanding of dummy-variables, is that they're just variable names pylint shouldn't complain about if you *don't* use ... as in ... they're variable names that are fine to be either used, or not used ... To me i,j,k fall into that category ... they'll often be used, just don't complain if they're not. des. On 20/07/2010, at 07:26 , [email protected] wrote: > > Derek> You're absolutely right ... I don't get these errors at all and > Derek> I've clipped the wrong part from my pylintrc ... instead, you can > Derek> set dummy-variables > > Derek> dummy-variables-rgx=_|dummy|i|j|k > > Derek> That lets i, j, k be used as dummy/unused variables. > > I often do use i, j, k as loop index variables, as I suspect to other people > (call it my Fortran roots). Your change would mask accidental non-use of > such variables because you are in effect telling pylint that you never use > i, j, k, dummy, or variables with a leading underscore anywhere in your > code. > > -- > Skip Montanaro - [email protected] - http://www.smontanaro.net/ _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
