I just learned about list comprehension, which is a great fast way to get data in a single line of code. But something\'s bugging me.
In my test I have this kind of
You can do this:
s = dict([ (k,r) for k,r in mydict.iteritems() if r['x'] > 92 and r['x'] < 95 and r['y'] > 70 and r['y'] < 75 ])
This takes a dict as you specified and returns a 'filtered' dict.