Loop until condition is true

Michael Hoffman cam.ac.uk at mh391.invalid
Wed Jun 22 11:57:31 EDT 2005


Remi Villatel wrote:
> Fredrik Lundh wrote:
>> checking if a logical expression is true by comparing it to True is bad
>> style, and comparing values using "is" is also bad style.
> 
> I wrote it this way because, first, it's perfectly valid Python code and,
 > second and most important, it's also a valid english sentence.

As others have pointed out, it's not perfectly valid code. In fact it is 
frequently incorrect.

> [CENSORED] I keep for myself how stupid I found your post...
> Don't try to teach your grandfather how to suck eggs.

You apparently don't know how to do it without getting egg on your face.
-- 
Michael Hoffman



More information about the Python-list mailing list