How to glob for iterable element
<p>I have a python dictionary that contains iterables, some of which are lists, but most of which are other dictionaries. I'd like to do glob-style assignment similar to the following:</p>

<pre><code>myiter['*']['*.txt']['name'] = 'Woot'
</code></pre>

<p>That is, for each element in myiter, look up all elements with keys ending in '.txt' and then set their 'name' item to 'Woot'.</p>

<p>I've thought about sub-classing dict and using the fnmatch module.  But, it's unclear to me what the <em>best</em> way of accomplishing this is.</p>
