Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'error:': 0.07; 'interpreted': 0.09; 'utilizing': 0.09; 'debugging,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'quite.': 0.16; 'sessions,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'programming': 0.22; 'coding': 0.22; 'error': 0.23; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'more': 0.64; 'power': 0.76; 'subject:gets': 0.84; 'rick': 0.93; '2013': 0.98 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=3qYA4Cl/SfqtOtC8Hfda0FkRebhJxB8ZuAAozjWm0j4=; b=R2bPCwZ8ZCamMTEA3pZbO8s4WR0LR6rka9DHRfzHx7jkSxl7/IpJdW1COAV8DX3F4F KLsemKIBFtEgAj6hAQyWcWv8//J6yEpt9grPoUlS9uleOq3x6BzybmahfymiLWgA4mKD KCYMp4S03XIWc6RRbqAI+fIwveDCf49ilENtNZx5aoYIyMHkH8iQjjETjdsUTm3BjWu6 w9XVmpxXC0iYc3Qh1m4Q+rmNg6D1GViRUw6nWUpnsrm+LGqs6rjG6phqarsjcPYGp7Bq FwIQNpQxoRW/T3HCI8nCekfFrkvwUKrrHRVapgUjKPTfwMJJJU7SqDlzxxH9XUW89U+V +tpA== MIME-Version: 1.0 X-Received: by 10.52.65.238 with SMTP id a14mr7582124vdt.24.1371002711384; Tue, 11 Jun 2013 19:05:11 -0700 (PDT) In-Reply-To: <27e627b2-e818-493d-9085-3cd73faf5015@a9g2000pbq.googlegroups.com> References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <7bf085ea-001f-4eed-9ed9-75f12165ac79@googlegroups.com> <27e627b2-e818-493d-9085-3cd73faf5015@a9g2000pbq.googlegroups.com> Date: Wed, 12 Jun 2013 12:05:11 +1000 Subject: Re: A certainl part of an if() structure never gets executed. 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.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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371002720 news.xs4all.nl 15866 [2001:888:2000:d::a6]:56662 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47730 On Wed, Jun 12, 2013 at 11:57 AM, alex23 wrote: > On Jun 12, 11:46 am, Rick Johnson > wrote: >> Utilizing the power of interactive sessions, for learning and debugging, >> should be a cornerstone fundamental of your programming "work-flow" when >> writing code in an interpreted language like Python. > > Unfortunately with Ferrous, the process is more like: > > if error: > post_to_python_list() > while error: > if time_elapsed == one_hour: > bump_post() Not quite. while people_paying_me_money(): while not error: code_per_rfc_2795() while error: post_to_python_list() while sucker_count < 3: if time_elapsed >= one_hour: # level-triggered, not edge-triggered bump_post() You have to include the coding phase. How else would he get into an error state? ChrisA