Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.04; 'python': 0.08; 'indicates': 0.09; 'c++': 0.12; 'things.': 0.13; 'syntax': 0.15; 'above?': 0.16; 'dummy': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:209.85.213.174': 0.16; 'received:mail-yx0-f174.google.com': 0.16; 'subject:pass': 0.16; 'wrote:': 0.18; 'defined': 0.19; 'versions': 0.23; 'itself,': 0.23; 'module,': 0.23; 'header:In-Reply-To:1': 0.23; 'removed.': 0.24; 'statement': 0.25; 'function': 0.27; 'message- id:@mail.gmail.com': 0.29; 'kinda': 0.30; 'subject:?': 0.31; 'nov': 0.31; 'pm,': 0.31; 'does': 0.32; "isn't": 0.32; 'to:addr :python-list': 0.32; 'this.': 0.33; 'there': 0.33; 'character': 0.34; 'see,': 0.34; 'subject:What': 0.34; 'similar': 0.35; 'rather': 0.35; 'anything': 0.36; 'fri,': 0.36; 'skip:" 10': 0.36; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'basic': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'your': 0.61; 'john': 0.62; '2011': 0.62; 'special': 0.67; 'subject:should': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=m+12PFXuHhhC3Fv9OHIlKFe1RyzGGA3z373xT9xp9b0=; b=eEdYh5dkyrdAAa+snl+3+ra+cKzzoCByCDVhhzDDKgExbhgkhssTj5TSeAMUb3BTpr CezZuhpJXAZaF/ftBJxDYGoW+O8keDUHZtZyxZOlwwXNDTb9D0VMp1lBslFN2az0Y5HK BeyiAxAFbH+MMHNF71EKFgKrPyKg01SjwxzIQ= MIME-Version: 1.0 In-Reply-To: <3758934.65.1321592843731.JavaMail.geo-discussion-forums@prms22> References: <27955957.352.1321582691251.JavaMail.geo-discussion-forums@prap37> <3758934.65.1321592843731.JavaMail.geo-discussion-forums@prms22> Date: Fri, 18 Nov 2011 16:34:10 +1100 Subject: Re: What exactly is "pass"? What should it be? From: Chris Angelico To: python-list@python.org 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321594454 news.xs4all.nl 6915 [2001:888:2000:d::a6]:43933 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15869 On Fri, Nov 18, 2011 at 4:07 PM, John Ladasky wrote: > One of my questions was: would there be any merit to having the Python "pass" token itself defined exactly as _pass() is defined above? No, there wouldn't. The Python 'pass' statement is a special statement that indicates a lack of anything to execute; a dummy function call isn't this. What I would kinda like to see, though, is function versions of many things. Your basic operators exist in the 'operator' module, but the syntax is rather clunky; for comparison, Pike has beautifully simple (if a little cryptic) syntax: back-tick followed by the operator itself, very similar to the way C++ does operator overloading. In Python 2, back-tick has a special meaning. In Python 3, that meaning is removed. Is the character now available for this "function-version" syntax? ChrisA