from
Francisco Borges <f.borges at rug dot nl>
subject
[Python-projects] list comprehension vars
date
Hello2005/06/15 09:48
I've been using pylint for some weeks now and python coding has become
considerably easier. Thanks a lot!! Really.
--------------------
One thing I don't like in pylint is that it doesn't allow me to use a
dummy variable in a list comprehension:
results = [ model.predict(p) for p in parses ]
I mean, I don't want to include "p" in the list of good-names, p is not
a normal short variable for me but in a list comprehension over
something as "parses" I fell that p is the right thing to use.
Would you guys consider including some condifguration var to allow the
variable checker to ignore whatever names I use in a list
comprehension??
Cheers,
Francisco
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
