Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'way:': 0.05; 'to:name:python mailing list': 0.09; 'complicated,': 0.16; 'subject:function': 0.16; 'thanks,': 0.17; 'usage': 0.20; 'tried': 0.27; 'function': 0.27; 'message-id:@mail.gmail.com': 0.28; 'hi,': 0.29; 'subject:?': 0.29; 'list': 0.30; 'to:addr:python-list': 0.32; 'received:209.85': 0.37; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'today': 0.70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=v68SpsaDWkd4spKWQz3otocgh2zuGnrUDPYCar/muR8=; b=Ql15R9Eidj2oEMHJhRLuLjjzRQv+6vblSixoKzOUjKmKo/HtKu8Mxy5/UVfKb5O+gK VZ3lEWWOMSWeyk86Xve9XRblMl3gz+3qIte4TKCb9+v//F3nzAb+VL0S6fGdm4Edw2vJ wteOZw4dNQ2lpIA6qlU6bzZzyJsKStSZ0xI9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=rqz1U72HwucNdOxW1luqii+RlxwJcFOu0dFax0S2C6kS98c2SqC2njXnG8f2z3O5In jC99CguSOk0uOT7ighgb+fR+e0MDPbqZenxz5q/hH5t0DN4kUbOcachzwrZoVUYkF2sK tGAPagPHAdkOsuriQbxGG6m9NWzzOsCwHean4= MIME-Version: 1.0 From: Jabba Laci Date: Wed, 6 Apr 2011 19:20:31 -0400 Subject: Is the function filter deprecated? To: Python mailing list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302132053 news.xs4all.nl 65870 [::ffff:82.94.164.166]:33295 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2726 Hi, I tried Pylint today and it gave me a warning for the function "filter". Is it deprecated? Is the usage of list comprehensions encouraged? The transformation is not complicated, by the way: replace "filter( func, seq )" with "[ x for x in seq if func(x) ]" . Thanks, Laszlo