Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!xlned.com!feeder7.xlned.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'case.': 0.05; 'arguments': 0.07; 'override': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'none.': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'answers:': 0.16; 'did.': 0.16; 'executable.': 0.16; 'fits': 0.16; 'function?': 0.16; 'overriding': 0.16; 'parameters,': 0.16; 'proceeds': 0.16; 'stuff,': 0.16; 'subject:import': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'code.': 0.20; 'parameters': 0.20; 'do.': 0.21; 'pass': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'execution': 0.27; "doesn't": 0.28; 'chris': 0.28; 'consistency': 0.29; 'no,': 0.29; 'function': 0.30; 'code': 0.31; 'could': 0.32; 'print': 0.32; 'goes': 0.33; 'function.': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; 'that,': 0.34; 'changed': 0.34; 'except': 0.36; 'but': 0.36; 'useful': 0.36; 'should': 0.36; 'does': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'apply': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'matter': 0.61; 'back': 0.62; 'more': 0.63; 'received:67.18': 0.65; 'reply': 0.66; 'alike.': 0.84; 'category.': 0.84; 'run?': 0.84 Date: Wed, 25 Jul 2012 21:32:33 -0700 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python-list@python.org Subject: Re: from future import pass_function References: <5010adb8$0$29978$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.74.2]) [50.137.155.36]:2550 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 3 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343277669 news.xs4all.nl 6895 [2001:888:2000:d::a6]:43714 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26060 Ross Ridge wrote: > Ross Ridge wrote: >> No, they're very much alike. That's why all your arguments for print >> as function also apply just as well to pass a function. Your arguments >> had very little to do what what print actually did. > > Chris Angelico wrote: >> Except that print / print() is executable. Execution proceeds through >> your code, comes to a "print", and goes off to handle that, then comes >> back to your code. But "pass" doesn't have code attached to it. Why >> should it be a function? > > For consistancy with print. What it does doesn't matter any more than > what print did mattered. Of course what print did mattered. `print` was not changed to `print()` because a function looks cooler; it was changed because it does stuff, and what it does could be changed with parameters, and overriding it with your own custom thingie was a useful thing to do. What code does `pass` run? When do we pass parameters to `pass`? When do we need to override `pass`? Answers: None. Never. Still waiting for a reply from the OP for a use case. How does that quote go? "A foolish consistency is the hobgoblin of little minds"? This definitely fits that category. ~Ethan~