(self, key, fallback)
Identical to `__getitem__`, but supports fallback value.
Identical to `__getitem__`, but supports fallback value.
Identical to __getitem__ but supports fallback value .
def get(self, key, fallback):
        """
        Identical to `__getitem__`, but supports fallback value.
        """
        try:
            return self[key]
        except (KeyError, IndexError):
            return fallback
def get ( self , key , fallback ) : try : return self [ key ] except ( KeyError , IndexError ) : return fallback