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 -- http://mail.python.org/mailman/listinfo/python-list