python: class override "is" behavior
<p>I'm writing a class which encapsulates any arbitrary object, including simple types. I want the "is" keyword to operate on the encapsulated value, such as this behavior:</p>

<pre><code>Wrapper(True) is True -&gt; True
Wrapper(False) is True -&gt; False
Wrapper(None) is None -&gt; True
Wrapper(1) is 1 -&gt; True
</code></pre>

<p>Is there any object method I can override to get this behavior?</p>
