def __getitem__(self, prop):
        """Return the value of property prop on the wrapped object."""
        if not hasattr(self.__wrapped, prop):
            raise KeyError(prop)
        return getattr(self.__wrapped, prop)
Return the value of property prop on the wrapped object.
recipes/Python/502219_attrview_dictstyle_access/recipe-502219.py