Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'method.': 0.05; 'python': 0.09; 'appropriate.': 0.09; 'loop.': 0.09; 'received:mail- vb0-f46.google.com': 0.09; 'useless': 0.09; '24,': 0.16; 'egg': 0.16; 'executable.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'horst': 0.16; 'wording': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'received:209.85.212.46': 0.18; 'example': 0.23; 'minutes.': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'van': 0.29; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'subject:, ': 0.61; 'jul': 0.65; 'hour,': 0.84; 'still.': 0.84; 'stir': 0.84; 'white.': 0.84; 'albert': 0.91; 'subject:skip:E 10': 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 :content-type; bh=5Dx2W2ZWUVKVMg5JNOXi/oFCqUXEDQksN3YxYDOXwis=; b=mYVMfwDavvSs6UrohIT13fl10225hM35CpD9d9DHyNGOTbU/PglQdSnzef03SCv7BT fqJFx68WI4V4U1KWJiJiouFD2vg5Sd6X1vMC1OflqtFpped8QH9L4oScy6wD2Gf5DWyG 7oyGRmZ+a2nGWaNye4yXBlLxMnRuvbrWma+kR0n2Ylmc2KcyqpE3FCnlDlSFgZpidQna wHxK3ZSzAaXOZ0hPvV03fsT33tWWi//Ss7FcvjE+PrpPo2YtutIDoQdKXM7fKuDoe8Ov RuENEfhCWs+Fnkl9FSWjW1Px/8bextN1jqZLOs/Lq/enBHyEIR2O3MwkHSCTc/GaFh36 TcXQ== MIME-Version: 1.0 In-Reply-To: References: <5006b48a$0$29978$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 24 Jul 2012 02:15:45 +1000 Subject: Re: Encapsulation, inheritance and polymorphism 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.12 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343060148 news.xs4all.nl 6896 [2001:888:2000:d::a6]:50686 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25898 On Tue, Jul 24, 2012 at 2:18 AM, Albert van der Horst wrote: > Example from recipee's: > > Stirr until the egg white is stiff. > > Alternative: > Stirr egg white for half an hour, > but if the egg white is stiff keep your spoon still. > > (Cooking is not my field of expertise, so the wording may > not be quite appropriate. ) Method. Take egg white from refrigerator. Put egg white into mixing bowl. Stir for 30 minutes. Stir the egg white. Stir the egg white until stirred. That's valid code, incidentally. Not Python code, but it is executable. And it includes a useless count-down-to-zero loop. ChrisA