On Thu, 10 Feb 2011 12:01:57 -0500, Terry Reedy wrote: > On 2/10/2011 11:52 AM, Ethan Furman wrote: >> Jason Swails wrote: > > >>> How is "while n != 0:" any worse? > > 1. It is redundant, just like 'if bool_value is not False:'. Python > programmers should understand the null value idiom.
I find that if statement too implicit for my tastes. I prefer to be explicit about the values returned by comparisons, rather than just assume that the reader understands Python's comparisons. Unfortunately, I never know when to stop. if bool_value is not False is True is True is True is True is ... -- Steven -- http://mail.python.org/mailman/listinfo/python-list