What is an easy way to create a trivial one-off Python object?
<p>I would like to create a trivial one-off Python object to hold some command-line options.  I would like to do something like this:</p>

<pre><code>options = ??????
options.VERBOSE = True
options.IGNORE_WARNINGS = False

# Then, elsewhere in the code...
if options.VERBOSE:
    ...
</code></pre>

<p>Of course I could use a dictionary, but <code>options.VERBOSE</code> is more readable and easier to type than <code>options['VERBOSE']</code>.</p>

<p>I <em>thought</em> that I should be able to do</p>

<pre><code>options = object()
</code></pre>

<p>, since <code>object</code> is the base type of all class objects and therefore should be something like a class with no attributes.  But it doesn't work, because an object created using <code>object()</code> doesn't have a <code>__dict__</code> member, and so one cannot add attributes to it:</p>

<pre><code>options.VERBOSE = True
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'object' object has no attribute 'VERBOSE'
</code></pre>

<p>What is the simplest "pythonic" way to create an object that can be used this way, preferably without having to create an extra helper class?</p>
