Return the item of d with key key. Raises a KeyError if key is not in the map.
d[key]
>>> class Counter(dict): ... def __missing__(self, key): ... return 0 >>> c = Counter() >>> c['red'] 0 >>> c['red'] += 1 >>> c['red'] 1