title: Attribute assignment to built-in object
body: <p>This works:</p>
  
  <pre><code>class MyClass(object):
      pass
  
  someinstance = MyClass()
  someinstance.myattribute = 42
  print someinstance.myattribute
  &gt;&gt;&gt; 42
  </code></pre>
  
  <p>But this doesn't:</p>
  
  <pre><code>someinstance = object()
  someinstance.myattribute = 42
  &gt;&gt;&gt; AttributeError: 'object' object has no attribute 'myattribute'
  </code></pre>
  
  <p>Why? I've got a feeling, that this is related to object being a built-in class, but I find this unsatisfactory, since I changed nothing in the declaration of MyClass.</p>