How do I dynamically add an attribute to a module from within that module?
<p>Say in a module I want to define:</p>

<pre><code>a = 'a'
b = 'b'
...
z = 'z'
</code></pre>

<p>For some set (in this case I chose letters).  How do I dynamically set attributes on the current module?  Something like:</p>

<pre><code>for letter in ['a', ..., 'z']:
    setattr(globals(), letter, letter)
</code></pre>

<p>This doesn't work, but what would?  (Also my understanding is that globals() within a module points to a dict of the attributes of that module, but feel free to correct me if that's wrong).</p>
