title: How to create inline objects with properties?
body: <p>In Javascript it would be:</p>
  
  <pre class="lang-js prettyprint-override"><code>var newObject = { 'propertyName' : 'propertyValue' };
  newObject.propertyName;  // returns "propertyValue"
  </code></pre>
  
  <p>But the same syntax in Python would create a dictionary, and that's not what I want</p>
  
  <pre><code>new_object = {'propertyName': 'propertyValue'}
  new_object.propertyName  # raises an AttributeError
  </code></pre>