Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'lawrence': 0.09; 'loop.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'recipes': 0.16; 'simulated': 0.16; 'structure.': 0.16; 'true:': 0.16; 'umpteen': 0.16; 'wrote:': 0.17; 'all,': 0.21; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'larry': 0.29; 'this.': 0.29; 'from:addr:yahoo.co.uk': 0.32; 'to:addr:python-list': 0.33; 'done': 0.34; 'pm,': 0.35; 'there': 0.35; 'received:org': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63; 'today': 0.67; 'lack': 0.71; 'discovered': 0.83; 'dict,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python Newbie Date: Sun, 24 Feb 2013 14:34:37 +0000 References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <8eadd52c-d533-4333-8c7f-7bf3a6d7b046@googlegroups.com> <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> <5129482F.3080402@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-29-221.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: X-Antivirus: avast! (VPS 130224-0, 24/02/2013), Outbound message X-Antivirus-Status: Clean 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361716464 news.xs4all.nl 6895 [2001:888:2000:d::a6]:47562 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39746 On 24/02/2013 04:20, Larry Hudson wrote: > On 02/23/2013 03:46 PM, piterrr.dolinski@gmail.com wrote: >> Hi all, >> > >> ... I have discovered today there is no do...while type loop. [Sigh] >> > No biggie. This is easily simulated with: > > while True: > ... > if : > break > > Less easily simulated is the lack of a switch/case structure. This has > to be done with a less convenient extended if/elif/.../else structure. Or a dict, there are umpteen recipes showing how to do this. > >> Peter >> > > -=- Larry -=- > -- Cheers. Mark Lawrence