What's the non brute force way to filter a Python dictionary?
<p>I can filter the following dictionary like:</p>

<pre><code>data = {
    1: {'name': 'stackoverflow', 'traffic': 'high'},
    2: {'name': 'serverfault', 'traffic': 'low'},
    3: {'name': 'superuser', 'traffic': 'low'},
    4: {'name': 'mathoverflow', 'traffic': 'low'},
}

traffic = 'low'

for k, v in data.items():
    if v['traffic'] == traffic:
        print k, v
</code></pre>

<p>Is there an alternate way to do the above filtering?</p>
