Victor Noagbodji wrote:

> Why do people use if name is not None: instead of simply
> writing if not name?

To differentiate from the case where name == '', or some other non-None
false value. So the question is, do you want to test for identity with
None, or for truth in general?


Jeffrey
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to