Python loop constructs

Tim Cargile tecargile at hotmail.com
Wed Jan 15 19:11:02 EST 2003


"John Roth" <johnroth at ameritech.net> wrote in message news:<v2aotpoed6lk28 at news.supernews.com>...
> "Jonathan P." <jbperez808 at yahoo.com> wrote in message
> news:f57664b9.0301142008.6a0888 at posting.google.com...
> 
> The objection that people have to
> 
> while 1:
> 
> or
> 
> while True: (as in Python 2.3)
> 
> is that it's an idiom and they'd like it to be
> more clearly stated. Frankly, I can't get myself
> all that fired up over the issue when there are
> lots of larger issues to work on.
> 
> John Roth

Wonder what they would think about

    while 1 == 1:

Saw this once in C code

   #define WHILE_COMPANY_IS_SOLVENT 1==1

   :

   while (COMPANY_IS_SOLVENT) {
          :
   }

Yes, I suppose there are more important issues.




More information about the Python-list mailing list