Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; '16,': 0.03; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'clear.': 0.16; 'fine.': 0.16; 'iteration,': 0.16; 'job!': 0.16; 'subject:simple': 0.16; 'wrote:': 0.17; 'version.': 0.17; 'discussion': 0.20; 'help.': 0.22; 'posted': 0.22; 'cc:2**0': 0.23; 'example': 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; 'am,': 0.27; 'lines': 0.28; 'chris': 0.28; 'checked': 0.30; 'defining': 0.33; 'problem': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'should': 0.36; 'itself': 0.37; 'two': 0.37; 'previous': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'perfect': 0.63; 'special': 0.73; 'subject:this': 0.84; '2013': 0.84; 'difference.': 0.84; 'secret.': 0.91 X-Received: by 10.49.29.99 with SMTP id j3mr880257qeh.38.1363448048045; Sat, 16 Mar 2013 08:34:08 -0700 (PDT) Newsgroups: comp.lang.python Date: Sat, 16 Mar 2013 08:34:07 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=131.109.225.38; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX References: <1e8ab690-c0e8-464a-ab13-cd109fc15327@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 131.109.225.38 MIME-Version: 1.0 Subject: Re: What am I doing wrong in this simple tkinter example? From: "Yves S. Garret" To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363448633 news.xs4all.nl 6845 [2001:888:2000:d::a6]:38278 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41320 On Saturday, March 16, 2013 11:23:07 AM UTC-4, Chris Angelico wrote: > On Sun, Mar 17, 2013 at 2:16 AM, Yves S. Garret > > wrote: > > > In the example that I have posted from the book it works just fine. > > > > Yep, I just checked the book's version again and the difference is > > clear. Check out the two lines I quoted in my previous post, and look > > at the corresponding two lines in the book's version. You should see > > the difference. :) > > > > By the way, I like the choice of secret. It lends itself well to a > > discussion of recursion - how do you live to 99? Live to 98, then be > > careful. Etcetera. You need just one special case: How do you live to > > 1? Be born, then be careful. And there you have it, a perfect problem > > for defining recursion vs iteration, as both can do the job! > > > > ChrisA *facepalm* Yep, I see it :) . Thanks for your help.