def setdefault(self, prop, val=None):
        """Return self.get(prop, val).  Also set the property prop on the
        wrapped object to val if it currently does not exist.

        """
        if hasattr(self.__wrapped, prop):
            return getattr(self.__wrapped, prop)
        else:
            setattr(self.__wrapped, prop, val)
            return val
Return self.get(prop, val).  Also set the property prop on the
        wrapped object to val if it currently does not exist.

        
recipes/Python/502219_attrview_dictstyle_access/recipe-502219.py