Scott David Daniels wrote: > Testing for None should be an is-test (not just for speed). In > older pythons the == result wasn't necessarily same as is-test. > This made sense to me after figuring out NULL in database stuff.
NULL in SQL databases has nothing to do with Python None. I'm quite sure that None == None always returned boolean true. In a SQL database, NULL = NULL will always return NULL, which is prety much the same as FALSE. Except for NOT, AS NOT NULL is NULL. Daniel -- http://mail.python.org/mailman/listinfo/python-list