[Python-projects] [Fwd: Re: pylint: What's wrong with the builtin map()]
Sylvain Thénault
sylvain.thenault at logilab.fr
Wed Nov 15 19:30:43 CET 2006
On Sunday 22 October à 22:19, Tuomas wrote:
>
> Beneath is a citate from comp.lang.python. I got an answer that list
> comprehension is more efficent than a map() with lambda. I am happy with
> that explanation, but what about message "E: 6: Using variable 'x'
> before assigment". What is the motivation of it? Technically speaking we
> are "Using variable 'x' before assigment" in the comprehension too, but
> there we have no ugly message.
that's simply a bug. But which version of pylint/astng are you using ? I
think this bug is fixed in earlier versions.
--
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