> if x == None > > As simple as that. In fact, I think the following is even a little more readable:
if x is None and in fact that syntax has some advantages in various corner cases. It's largely a matter of preference. Dustin _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor