title: Python simple naked objects
body: <p>What's the easiest way to create a naked object that I can assign attributes to?</p>
  
  <p>The specific use case is: I'm doing various operations on a Django object instance, but sometimes the instance is None (there is on instance). In this case I'd like to create the simplest possible fake object such that I can assign values to its attributes (eg. <code>myobject.foo = 'bar'</code>).</p>
  
  <p>Basically I'm looking for the Python equivalent of this piece of Javascript:</p>
  
  <pre><code>myobject = {}
  myobject.foo = 'bar'
  </code></pre>
  
  <p>I know I can use a mock object/library for this, but I'm hoping for a very simple solution (as simple as the Javascript above). Is there a way to create a naked object instance? Something like:</p>
  
  <pre><code>myobject = object()
  myobject.foo = 'bar'
  </code></pre>