Why does float('Inf') is float('Inf') returns false in Python?
<p>Whilst reading about Python's infinity, I came accross this :</p>

<pre><code>&gt;&gt;&gt;float('Inf') == float('Inf')
True
&gt;&gt;&gt;float('Inf') is float('Inf')
False
&gt;&gt;&gt;float('Inf') is not float('Inf')
True
</code></pre>

<p>I understand that equals works but I am wondering what <code>float('Inf')</code> actually points to that make the <code>is</code> test return <code>False</code> ? Is it different each time you call <code>float('Inf')</code> ?</p>

<p>EDIT: <strong>I am not asking about the difference between <code>==</code> and <code>is</code></strong>. I am asking about the implementation details of <code>float('Inf')</code> and the nature of this object.</p>