def get(self, key, default = None):
        'od.get(k[,d]) -> od[k] if k in od, else d.  d defaults to None.'
        try:
            value = self.__getitem__(key)
        except KeyError:
            value = default
        return value
od.get(k[,d]) -> od[k] if k in od, else d.  d defaults to None.
recipes/Python/577826_Yet_Another_Ordered_Dictionary/recipe-577826.py