On Fri, Mar 6, 2015 at 10:27 AM,  <sohcahto...@gmail.com> wrote:
> Do you have an example of where `a is b` but `a != b` in Python?  `None == 
> None` is True.

Check out the subject line.

>>> nan = float("nan")
>>> nan is nan  # obviously
True
>>> nan != nan  # IEEE 754 mandates
True

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to