On Thursday 07 April 2011 22:56:23 Dan Stromberg wrote: > Filter is not deprecated, but it was almost removed from Python 3.x. > > It's also an unnecessary extra, now that Python has List Comprehensions and > Generator Expressions. Python does not adhere to TMTOWTDI, fortunately. > > Pylint is not (and cannot be) all things to all people - at least, not > right out of the box. Out of the box, it is one (useful) standard for > what code should look like, not the final word on what code should look > like. If you need to disable messages about use of filter, you can easily > add comments to disable them on a case by case basis, or set up a pylint > rc file to disable them for an entire project at once.
The relevant line in the default pylintrc is bad-functions=map,filter,apply,input You like map, filter and apply? Just remove them from the list... -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations Développement logiciel sur mesure : http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
