I think it is more readable. When doing more complicated statements I use != instead, but when it's a single test I prefer not … ==
It's a personal thing. It may also have to do with the fact that I didn't know python had != when I was a novice. On 13 May 2013 19:08, "Ned Batchelder" <n...@nedbatchelder.com> wrote: > > On 5/13/2013 1:26 PM, Fábio Santos wrote: > > > On 13 May 2013 11:04, "Alister" <alister.w...@ntlworld.com> wrote: > > this looks to me like an issue with operator precidence > > > > you code is evaluating as (Not x) == y > > rather than not (x == y) > > I can say for sure that the precedence is as expected. I always use "not > ... == ..." Instead of !=. > > > If you don't mind my asking, why do you do that? > > --Ned. > >
-- http://mail.python.org/mailman/listinfo/python-list