It's rather late and long the thread, and I'm not sure if this is said before
but following previous messages (Martin, Graham, ..), don't you think
something like this should be somewhere:
class _q_map:
def __init__(self, map):
self._q_exports = map.keys()
self._q_resolve = map.get
Note that _q_resolve has a side-effect rather inofensive (and usefull) in this
case.
-Oscar Rambla