Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15869
| 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 | <rosuav@gmail.com> |
| 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> <mailman.2818.1321590908.27778.python-list@python.org> <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 <rosuav@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2823.1321594454.27778.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Fri, Nov 18, 2011 at 4:07 PM, John Ladasky <ladasky@my-deja.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What exactly is "pass"? What should it be? John Ladasky <ladasky@my-deja.com> - 2011-11-17 18:18 -0800
Re: What exactly is "pass"? What should it be? Chris Rebert <clp2@rebertia.com> - 2011-11-17 18:45 -0800
Re: What exactly is "pass"? What should it be? John Ladasky <ladasky@my-deja.com> - 2011-11-17 21:03 -0800
Re: What exactly is "pass"? What should it be? John Ladasky <ladasky@my-deja.com> - 2011-11-17 21:03 -0800
Re: What exactly is "pass"? What should it be? Chris Angelico <rosuav@gmail.com> - 2011-11-18 13:59 +1100
Re: What exactly is "pass"? What should it be? alex23 <wuwei23@gmail.com> - 2011-11-17 22:04 -0800
Re: What exactly is "pass"? What should it be? Dominic Binks <dbinks@codeaurora.org> - 2011-11-17 19:01 -0800
Re: What exactly is "pass"? What should it be? Ben Finney <ben+python@benfinney.id.au> - 2011-11-18 14:45 +1100
Re: What exactly is "pass"? What should it be? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-17 20:34 -0800
Re: What exactly is "pass"? What should it be? John Ladasky <ladasky@my-deja.com> - 2011-11-17 21:07 -0800
Re: What exactly is "pass"? What should it be? Chris Angelico <rosuav@gmail.com> - 2011-11-18 16:34 +1100
Re: What exactly is "pass"? What should it be? Chris Rebert <clp2@rebertia.com> - 2011-11-17 21:49 -0800
Re: What exactly is "pass"? What should it be? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-18 06:07 +0000
Re: What exactly is "pass"? What should it be? John Ladasky <ladasky@my-deja.com> - 2011-11-17 21:07 -0800
Re: What exactly is "pass"? What should it be? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-11-18 10:57 +0100
Re: What exactly is "pass"? What should it be? MRAB <python@mrabarnett.plus.com> - 2011-11-18 13:03 +0000
csiph-web