'Dict-like get() that also supports optional domain and path args in
order to resolve naming collisions from using one cookie jar over
multiple domains. Caution: operation is O(n), not O(1).'

def get(self, name, default=None, domain=None, path=None):

    try:
        return self._find_no_duplicates(name, domain, path)
    except KeyError:
        return default
