Why dir doesn't show all Python object attributes?
<p>Why do some object methods/attributes not show up when I call <code>dir</code> on the object?</p>

<p>Example:</p>

<pre><code>from scipy import sparse
e = sparse.eye(2)
'H' in dir(e)
</code></pre>

<p>returns <code>False</code>.  But calling <code>e.H</code> works just fine (returning another sparse matrix object).  Why is this so, and how can I see these hidden attributes?</p>

<p>I'm using Python 3.5.1.</p>