GZ <zyzhu2...@gmail.com> writes: > assert (a==None)==(c==None)... > So how do I reliably test if a value is None or not?
Equality is the wrong comparison to start with. Use "a is None". -- http://mail.python.org/mailman/listinfo/python-list
GZ <zyzhu2...@gmail.com> writes: > assert (a==None)==(c==None)... > So how do I reliably test if a value is None or not?
Equality is the wrong comparison to start with. Use "a is None". -- http://mail.python.org/mailman/listinfo/python-list