from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Francisco Borges <f.borges at rug dot nl>
subject
Re: [Python-projects] list comprehension vars
date
On Wednesday 15 June à 09:48, Francisco Borges wrote:2005/06/15 10:25
> Hello
Hi
> I've been using pylint for some weeks now and python coding has become
> considerably easier. Thanks a lot!! Really.
:o)
> 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??
Well, that could be nice actually. I add that to pylint feature tracker
(no idea when it will be implemented though...).
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
