A certainl part of an if() structure never gets executed.

Chris Angelico rosuav at gmail.com
Tue Jun 11 22:05:11 EDT 2013


On Wed, Jun 12, 2013 at 11:57 AM, alex23 <wuwei23 at gmail.com> wrote:
> On Jun 12, 11:46 am, Rick Johnson <rantingrickjohn... at gmail.com>
> 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



More information about the Python-list mailing list