Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26101
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.03; 'case.': 0.05; 'arguments': 0.07; 'missed': 0.09; 'python': 0.09; '__future__': 0.09; 'braces': 0.09; 'complaining': 0.09; 'forcing': 0.09; 'generators': 0.09; 'idea?': 0.09; 'cc:addr :python-list': 0.10; 'def': 0.10; 'thread': 0.11; 'language': 0.14; 'discussions': 0.15; '*why*': 0.16; '2.2,': 0.16; '3.0)': 0.16; 'backward': 0.16; 'btw:': 0.16; 'eckhardt': 0.16; 'jumping': 0.16; 're-read': 0.16; 'subject:import': 0.16; 'syntax,': 0.16; 'thought.': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.17; 'fix': 0.17; 'pointed': 0.17; 'skip': 0.17; 'thu,': 0.17; '>>>': 0.18; 'code,': 0.18; 'discussion': 0.20; 'assuming': 0.22; 'features,': 0.22; 'received:74.125.82.174': 0.23; 'cc:2**0': 0.23; 'nearly': 0.23; 'this:': 0.23; "i've": 0.23; 'somewhere': 0.24; 'cc:no real name:2**0': 0.24; 'idea': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'looks': 0.26; 'wrote': 0.26; 'am,': 0.27; 'coding': 0.27; 'guess': 0.27; 'topic': 0.27; 'question': 0.27; 'i.e.': 0.27; 'replace': 0.27; 'message-id:@mail.gmail.com': 0.27; '(unless': 0.29; 'block,': 0.29; "d'aprano": 0.29; 'division': 0.29; 'really,': 0.29; 'steven': 0.29; 'url:mailman': 0.29; 'case,': 0.29; "i'm": 0.29; 'maybe': 0.29; 'that.': 0.30; 'function': 0.30; 'compatible': 0.30; 'code': 0.31; 'point': 0.31; 'url:python': 0.32; 'url:listinfo': 0.32; 'received:74.125.82': 0.33; 'asked': 0.33; '+0200,': 0.33; 'right?': 0.33; 'knowledge': 0.33; 'point.': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'wrong': 0.34; 'done': 0.34; 'so,': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'others.': 0.36; "didn't": 0.36; 'test': 0.36; 'should': 0.36; 'does': 0.37; 'two': 0.37; 'being': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'instead': 0.39; 'release': 0.39; 'little': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'you.': 0.61; 'first': 0.61; 'back': 0.62; 'mentioned': 0.63; 'ever': 0.63; 'skip:n 10': 0.63; 'information': 0.63; 'here': 0.65; 'become': 0.65; 'decided': 0.65; '26,': 0.65; 'engage': 0.65; 'frustrated': 0.65; 'jul': 0.65; 'construction': 0.72; 'day': 0.73; 'goals': 0.78; 'participants': 0.78; '"what': 0.84; 'against,': 0.84; 'amazed': 0.84; 'conclusions': 0.84; 'different.': 0.84; 'implications': 0.84; 'mandatory.': 0.84; 'measure,': 0.84; 'remark': 0.84; 'seldom': 0.84; 'tone': 0.84; 'joel': 0.91; 'acknowledge': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5QVnUDDPSOmgdC1tSi8k1Aak/PfOnpJfou+w/VyEcU4=; b=yIyjcB7kQbNsG+D1XoifbUiVMDrnPFOAIdSSWyk2kBbeTY8xCWmTKnDz83ZylqaJSg cIIl5qpy2Uc5rg/ADw4vOVRKt6KGJWUntgmKLtmPJ8cd9X59aQQ3DAOqZQ9bxHEM6n5P TNEDY68HNi3L/CzroR3I3HCyRXPMulIbOJFFSGBE+vutgNoqbyer0FBEzdJa8tqp+iTn 5WevE4dtvSGVsBVJqe0IHKBuAuPy7yY4gMptt03UViDOmY1R5btbjRGwais2BuX3iwj0 okpHE531KhY38ZM+W9bN/5/rCnwFSCdCtJB5L7RSJD61ViiaZVeLvoT3f+fgcOGJsnF+ yWLQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <5011606c$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| References | <d1o4e9-tlr.ln1@satorlaser.homedns.org> <500fd986$0$29978$c3e8da3$5496439d@news.astraweb.com> <juq79q$gg3$1@rumours.uwaterloo.ca> <5010adb8$0$29978$c3e8da3$5496439d@news.astraweb.com> <if67e9-gv1.ln1@satorlaser.homedns.org> <50110d59$0$11120$c3e8da3@news.astraweb.com> <k7n7e9-n63.ln1@satorlaser.homedns.org> <5011606c$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Date | Thu, 26 Jul 2012 12:55:18 -0400 |
| Subject | Re: from future import pass_function |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | "Steven D'Aprano" <steve+comp.lang.python@pearwood.info> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list@python.org |
| 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.2616.1343321721.4697.python-list@python.org> (permalink) |
| Lines | 86 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1343321721 news.xs4all.nl 6919 [2001:888:2000:d::a6]:41479 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26101 |
Show key headers only | View raw
On Thu, Jul 26, 2012 at 11:21 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Thu, 26 Jul 2012 13:45:23 +0200, Ulrich Eckhardt wrote:
>
>> I didn't say "Pass should be a function!" but asked "What do you
>> think?". You are assuming lots of things about my goals and jumping to
>> conclusions like that I'm complaining about the stupid Python syntax,
>> that I'm a frustrated noob, that I want someone to fix that syntax, but
>> that is not the case! I'm engaging in a discussion here exactly in order
>> to test the idea I had.
>
> Fair point. I underestimated you. But go back and re-read your first
> post, and see if you can understand *why* I underestimated you. You
> really didn't give any sign that you had given this question much
> detailed thought.
>
> Perhaps if you had mentioned that you had not decided whether this was a
> good idea and was looking for arguments both for and against, this tone
> of this discussion would have been very different.
>
>
>
>>> It took me a long time to learn that, for an established language like
>>> Python, change is nearly always for the worse, and any change that
>>> requires changing existing code better have a very good excuse.
>>
>> ...so what do you do when you have an idea? You think about it on your
>> own, right? I do so, too, but I also engage in discussions with others.
>> See? BTW: I think you missed the implications of this thread's topic and
>> the snide remark about forcing people to change their code, i.e. that no
>> existing code has to change (apart from the Python implementation, of
>> course), even if pass was made a function!
>
> I think that you misunderstand the purpose of from __future__ import. It
> is a *temporary* measure, always. Features which are not backward
> compatible are FIRST introduced as __future__ features, and THEN a
> release or two later, they become mandatory. (Unless they are dropped,
> which has not happened yet.)
>
> There have been seven __future__ features as of Python 3.2:
>
> absolute_import (enabled in 2.5, mandatory in 2.7)
> division (enabled in 2.2, mandatory in 3.0)
> generators (enabled in 2.2, mandatory in 2.3)
> nested_scopes (enabled in 2.1, mandatory in 2.2)
> print_function (enabled in 2.6, mandatory in 3.0)
> unicode_literals (enabled in 2.6, mandatory in 3.0)
> with_statement (enabled in 2.5, mandatory in 2.6)
>
>
> In any case, I acknowledge that I was wrong about your motivation. I made
> a guess based on the limited information I had, and based on my own
> history, and you tell me my guess was wrong. I accept that.
>
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list
This is the silliest thread I've ever seen in this group. I should
abstain, but what the heck:
If you want a function that does nothing, write one. Maybe like this:
def do_nothing():
return
Then, where you previous wrote pass in your code you can replace it
with this thing.
But really, not being a language meta-maven myself, somewhere above in
this thread it was pointed out that pass is a syntax construction that
is necessary in the very seldom case where you create a block of code
that has no instructions. Instead of braces for every block, you get
to skip that in python and just put pass in this extraordinary little
case.
While I've come to the point in my python coding knowledge to get my
day to day work done proficiently, I'm amazed each time I delve deeper
into how profoundly well this language was thought out. No offence to
all the well meaning participants here, but this looks like trolling
--
Joel Goldstick
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-25 10:40 +0200
Re: from future import pass_function Philipp Hagemeister <phihag@phihag.de> - 2012-07-25 12:30 +0200
Re: from future import pass_function Nicholas Cole <nicholas.cole@gmail.com> - 2012-07-25 11:33 +0100
Re: from future import pass_function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-25 07:02 -0400
Re: from future import pass_function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-25 11:33 +0000
Re: from future import pass_function Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-25 21:42 -0400
Re: from future import pass_function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-26 02:38 +0000
Re: from future import pass_function Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-25 23:30 -0400
Re: from future import pass_function Chris Angelico <rosuav@gmail.com> - 2012-07-26 13:53 +1000
Re: from future import pass_function Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-07-26 00:03 -0400
Re: from future import pass_function Ethan Furman <ethan@stoneleaf.us> - 2012-07-25 21:32 -0700
Re: from future import pass_function John Ladasky <john_ladasky@sbcglobal.net> - 2012-07-26 13:55 -0700
Re: from future import pass_function Ethan Furman <ethan@stoneleaf.us> - 2012-07-26 14:23 -0700
Re: from future import pass_function John Ladasky <john_ladasky@sbcglobal.net> - 2012-07-26 15:20 -0700
Re: from future import pass_function John Ladasky <john_ladasky@sbcglobal.net> - 2012-07-26 15:20 -0700
Re: from future import pass_function John Ladasky <john_ladasky@sbcglobal.net> - 2012-07-26 13:55 -0700
Re: from future import pass_function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-26 08:43 +0100
Re: from future import pass_function alex23 <wuwei23@gmail.com> - 2012-07-25 21:20 -0700
Re: from future import pass_function Rusi <rustompmody@gmail.com> - 2012-07-25 22:09 -0700
Re: from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-26 08:59 +0200
Re: from future import pass_function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-26 09:26 +0000
Re: from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-26 13:45 +0200
Re: from future import pass_function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-26 15:21 +0000
Re: from future import pass_function Joel Goldstick <joel.goldstick@gmail.com> - 2012-07-26 12:55 -0400
RE: from future import pass_function "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-07-26 17:19 +0000
Re: from future import pass_function Chris Angelico <rosuav@gmail.com> - 2012-07-27 03:33 +1000
Re: from future import pass_function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-27 00:25 +0100
Re: from future import pass_function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-27 00:23 +0100
Re: from future import pass_function alex23 <wuwei23@gmail.com> - 2012-07-25 21:17 -0700
Re: from future import pass_function Chris Angelico <rosuav@gmail.com> - 2012-07-26 02:05 +1000
Re: from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-26 08:39 +0200
Re: from future import pass_function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-26 08:36 +0000
Re: from future import pass_function Terry Reedy <tjreedy@udel.edu> - 2012-07-26 10:38 -0400
Re: from future import pass_function Ethan Furman <ethan@stoneleaf.us> - 2012-07-25 09:28 -0700
Re: from future import pass_function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-25 12:48 -0400
Re: from future import pass_function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-25 14:17 -0400
Re: from future import pass_function Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-07-26 01:20 -0400
Re: from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-26 08:42 +0200
Re: from future import pass_function Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-07-26 17:15 -0400
Re: from future import pass_function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-26 08:50 +0100
Re: from future import pass_function Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-07-27 08:39 +0200
Re: from future import pass_function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-26 05:16 -0400
Re: from future import pass_function Chris Angelico <rosuav@gmail.com> - 2012-07-26 19:42 +1000
Re: from future import pass_function Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-26 06:00 -0400
Re: from future import pass_function rusi <rustompmody@gmail.com> - 2012-07-26 08:01 -0700
Re: from future import pass_function Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-26 14:01 -0400
Re: from future import pass_function Chris Angelico <rosuav@gmail.com> - 2012-07-27 04:14 +1000
Re: from future import pass_function John Ladasky <john_ladasky@sbcglobal.net> - 2012-07-26 13:48 -0700
Re: from future import pass_function Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-26 15:18 -0600
Re: from future import pass_function Ethan Furman <ethan@stoneleaf.us> - 2012-07-26 15:35 -0700
Re: from future import pass_function Terry Reedy <tjreedy@udel.edu> - 2012-07-27 00:21 -0400
Re: from future import pass_function Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-07-26 17:20 -0400
csiph-web