Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '*args,': 0.07; '(although': 0.09; 'agree,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'passing': 0.15; 'discussion.': 0.16; 'subject:import': 0.16; 'which,': 0.16; 'wrote:': 0.17; 'proposed': 0.20; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'instead.': 0.27; 'accomplished': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'thursday,': 0.30; 'certain': 0.33; 'received:google.com': 0.34; 'continue': 0.35; 'received:209.85': 0.35; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'easily': 0.39; 'july': 0.60; '26,': 0.65; 'from:addr:sbcglobal.net': 0.65; 'want,': 0.65; 'furman': 0.84; 'ethan': 0.91 Newsgroups: comp.lang.python Date: Thu, 26 Jul 2012 15:20:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.100.180.25; posting-account=aVGMWgkAAAB6mGKt34gyuFhFeGnfZNcf References: <5010adb8$0$29978$c3e8da3$5496439d@news.astraweb.com> <6ef13dc9-ad5c-4ed7-9b5c-36f98cd90bb1@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 99.100.180.25 MIME-Version: 1.0 Subject: Re: from future import pass_function From: John Ladasky To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, John Ladasky 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: , Message-ID: Lines: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343341213 news.xs4all.nl 6854 [2001:888:2000:d::a6]:49300 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26122 On Thursday, July 26, 2012 2:23:02 PM UTC-7, Ethan Furman wrote: > That's a reasonable thing to want, and quite easily accomplished by > passing `lambda: None` or `lambda *args, **kwargs: None` instead. That's the same solution that Steven D'Aprano proposed the last time we had this discussion. Which, I agree, is reasonable (although I continue to have a certain instinctive aversion to lambda).