def __getattr__(self, key):
        try:
            return self.__kwargs[key]
        except __HOLE__:
            raise AttributeError(key)

    # Have to provide __setstate__ to avoid
    # infinite recursion since we override
    # __getattr__.
dataset/ETHPy150Open mongodb/mongo-python-driver/bson/dbref.py/DBRef.__getattr__