Object has no attribute '.__dict__' in python3 : <p>I have a test that passes in Python2 and fails in Python3, I'm trying to find out why. The test fails at the following line:</p>

<pre><code>self._timeseries[0].resource.__dict__
</code></pre>

<p>With the error:</p>

<pre><code>AttributeError: 'Resource' object has no attribute '__dict__'
</code></pre>

<p>If I debug the test, and print the object in the debugger, I can see the following:</p>

<pre><code>(Pdb) p self._timeseries[0].resource.__dict__
OrderedDict([('type', 'type_value'), ('labels', {'label1': 'value1', 'label2': 'value2', 'label3': 'value3'})])
</code></pre>

<p>If I do the same in Python3 debugger, I get this:</p>

<pre><code>(Pdb) p self._timeseries[0].resource.__dict__
*** AttributeError: 'Resource' object has no attribute '__dict__'
</code></pre>

<p>Any ideas why this might be happening? The object looks exactly the same if I print it in the debugger without the <code>.__dict__</code>, why is this failing for Python3?</p>
