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!newsfeed6.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'received:209.85.223': 0.03; 'needed,': 0.05; 'python': 0.09; 'other,': 0.09; 'sep': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:not': 0.11; 'suggest': 0.11; 'cases': 0.15; '11:19': 0.16; 'generator.': 0.16; 'sorts': 0.16; 'triangle': 0.16; 'wrote:': 0.17; 'written': 0.20; "i'd": 0.22; 'cc:2**0': 0.23; 'demonstrate': 0.23; 'mention': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'url:wiki': 0.26; 'question': 0.27; 'then.': 0.27; 'chris': 0.28; 'url:wikipedia': 0.29; 'computing': 0.32; 'asked': 0.33; 'received:google.com': 0.34; 'from:addr:googlemail.com': 0.35; '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; 'little': 0.39; 'application': 0.40; 'where': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'first': 0.61; 'solve': 0.62; 'ever': 0.63; 'more': 0.63; 'direct': 0.69; 'neil': 0.84; 'fibonacci': 0.91; 'shoulder': 0.91 Newsgroups: comp.lang.python Date: Tue, 18 Sep 2012 08:14:42 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.192.32.215; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw References: <1017333532.1009581.1347628946603.JavaMail.root@sequans.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 123.192.32.215 MIME-Version: 1.0 Subject: Re: Decorators not worth the effort From: 88888 Dihedral To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347981286 news.xs4all.nl 6911 [2001:888:2000:d::a6]:57317 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29434 Chris Angelico=E6=96=BC 2012=E5=B9=B49=E6=9C=8818=E6=97=A5=E6=98=9F=E6=9C= =9F=E4=BA=8CUTC+8=E4=B8=8B=E5=8D=889=E6=99=8225=E5=88=8604=E7=A7=92=E5=AF= =AB=E9=81=93=EF=BC=9A > On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti wrote: >=20 > > On 2012-09-14, Chris Angelico wrote: >=20 > >> But then again, who actually ever needs fibonacci numbers? >=20 > > >=20 > > If it should happen that your question is not facetious: >=20 > > >=20 > > http://en.wikipedia.org/wiki/Fibonacci_number#Applications >=20 >=20 >=20 > It wasn't entirely facetious. I know there are a few cases where >=20 > they're needed, but I think they're calculated far more often to >=20 > demonstrate algorithms than because you actually have use of them. :) >=20 >=20 >=20 > Though it's as well to mention these sorts of things now and then. I >=20 > remember one time writing up something or other, and my dad was >=20 > looking over my shoulder and asked me why I'd written a little >=20 > Pascal's Triangle generator. He didn't know that it had direct >=20 > application to whatever-it-was. And unfortunately I don't remember >=20 > what I was even writing at the time :) >=20 >=20 >=20 > ChrisA I would suggest one should solve the Fibnaci(50000) first and fast in Pytho= n. Then one can think about computing c(n,k) in Python for large n. Then