def __setattr__(self, name, value):
        """Set the `name` attribute to `value."""
        if value and name == 'subreddit' and isinstance(value, six.string_types):
            value = Subreddit(self.reddit_session, value, fetch=False)
        elif name == 'permalink' and isinstance(self, Comment):
            # The Reddit API now returns the permalink field for comments. This
            # will unfortunately break PRAW because permalink is a @property on the
            # Comment object. I need to investigate if the property can be removed,
            # for now this is a quick hack to get things working again.
            #     https://github.com/michael-lazar/rtv/issues/462
            return
        elif value and name in REDDITOR_KEYS:
            if isinstance(value, bool):
                pass
            elif isinstance(value, dict):
                value = Redditor(self.reddit_session, json_dict=value['data'])
            elif not value or value == '[deleted]':
                value = None
            else:
                value = Redditor(self.reddit_session, value, fetch=False)
        object.__setattr__(self, name, value)
Set the `name` attribute to `value.
rtv/packages/praw/objects.py