Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'classes,': 0.05; 'classes.': 0.07; 'verbatim': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; ';-)': 0.11; 'exercise': 0.13; 'dec': 0.15; 'code?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'coding': 0.27; 'found.': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'subject:learning': 0.29; 'code': 0.31; 'getting': 0.33; 'to:addr :python-list': 0.33; 'tutorial': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'anything': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'matter': 0.61; 'total': 0.65; 'sum': 0.66; 'fact,': 0.69; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: learning curve Date: Fri, 28 Dec 2012 21:03:44 -0500 References: <0b533176-5284-450d-aa8d-1e1ca9df1906@m4g2000pbd.googlegroups.com> <50DDE510.9000303@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50DDE510.9000303@gmail.com> 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356746661 news.xs4all.nl 6892 [2001:888:2000:d::a6]:42546 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35730 On 12/28/2012 1:29 PM, Verde Denim wrote: > On 12/27/2012 09:32 PM, alex23 wrote: >> On Dec 28, 11:20 am, Verde Denim wrote: >>> Just getting into Py coding and not understanding why this code doesn't >>> seem to do anything - >> >> Is that the sum total of your code? You're not showing any >> instantiation of your classes. > Yes, as a matter of fact, it is the example verbatim from the tutorial > pages that I found. Apparently, it isn't the best example... Let us say that it was an example of how to write classes, with usage left as an exercise for the reader ;-) -- Terry Jan Reedy