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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'needed,': 0.05; 'other,': 0.09; 'received:mail-vb0-f46.google.com': 0.09; 'sep': 0.09; 'subject:not': 0.11; 'cases': 0.15; '11:19': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'generator.': 0.16; 'sorts': 0.16; 'triangle': 0.16; 'wrote:': 0.17; 'received:209.85.212.46': 0.18; 'written': 0.20; "i'd": 0.22; 'demonstrate': 0.23; 'mention': 0.23; 'header:In-Reply- To:1': 0.25; 'url:wiki': 0.26; 'question': 0.27; 'then.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'chris': 0.28; 'url:wikipedia': 0.29; 'asked': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; "wasn't": 0.36; "didn't": 0.36; 'should': 0.36; 'why': 0.37; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'application': 0.40; 'where': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'ever': 0.63; 'more': 0.63; 'direct': 0.69; 'neil': 0.84; 'fibonacci': 0.91; 'shoulder': 0.91 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 :content-type; bh=Ct0D1CAtpTNLqonEwdDcEUmCP5uGJddvXKmOzjgh7nY=; b=0ap8iROpPnHD8aKtKZwAok/d7xZg9fe75seC1tguj2ZVUzGKF8Hh+l8bCtFUysnCdP cnZiKB/Polubxu+YCicmI8FfVDPvB62yiSGY0FJU7YE3drTp8y8gNStqBY1q1osPMS4n 2xMZkh08enkQCbOpWO+DmbPI5Yfo5HcOIs96r9BqvU+gxa9Onft7f3V6iIEeFZtoTzs9 2YCEK7nNUTq8yoC5Uq+XndJvE5oPdo2pvkN+wI+2cbyU55tAqSbKC2C4k3Q3sbQUn7pt MMpNsIXp8QA0jIER8Od+Gw35Zu3PfO/KvXOmv6VBKIfbQMSG3gR/2Xf+U4iSw0QTH4vI rhGA== MIME-Version: 1.0 In-Reply-To: References: <1017333532.1009581.1347628946603.JavaMail.root@sequans.com> Date: Tue, 18 Sep 2012 23:25:01 +1000 Subject: Re: Decorators not worth the effort 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.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347974704 news.xs4all.nl 6961 [2001:888:2000:d::a6]:58180 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29429 On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti wrote: > On 2012-09-14, Chris Angelico wrote: >> But then again, who actually ever needs fibonacci numbers? > > If it should happen that your question is not facetious: > > http://en.wikipedia.org/wiki/Fibonacci_number#Applications It wasn't entirely facetious. I know there are a few cases where they're needed, but I think they're calculated far more often to demonstrate algorithms than because you actually have use of them. :) Though it's as well to mention these sorts of things now and then. I remember one time writing up something or other, and my dad was looking over my shoulder and asked me why I'd written a little Pascal's Triangle generator. He didn't know that it had direct application to whatever-it-was. And unfortunately I don't remember what I was even writing at the time :) ChrisA