python类models()的实例源码

praww.py 文件源码 项目:hearthscan-bot 作者: d-schmidt 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def withCommentListener(self, commentListener):
        """Set a commentListener function. Comments will not be repeated.
        http://praw.readthedocs.io/en/latest/code_overview/models/comment.html

        :param commentListener: function(redditInstance, comment)
        :return: self
        """
        self.__commentListener = commentListener
        return self
praww.py 文件源码 项目:hearthscan-bot 作者: d-schmidt 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def withSubmissionListener(self, submissionListener):
        """Set a submissionListener function. Submissions will not be repeated.
        http://praw.readthedocs.io/en/latest/code_overview/models/submission.html

        :param submissionListener: function(redditInstance, submission)
        :return: self
        """
        self.__submissionListener = submissionListener
        return self
praww.py 文件源码 项目:hearthscan-bot 作者: d-schmidt 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def withMentionListener(self, commentListener):
        """Set a mentionListener function. Comments will not be repeated.
        http://praw.readthedocs.io/en/latest/code_overview/models/comment.html

        :param commentListener: function(redditInstance, comment)
        :return: self
        """
        self.__mentionListener = commentListener
        return self
praww.py 文件源码 项目:hearthscan-bot 作者: d-schmidt 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def withPMListener(self, pmListener):
        """Set a pmListener function. PMs will not be repeated.
        http://praw.readthedocs.io/en/latest/code_overview/models/message.html

        :param pmListener: function(redditInstance, message)
        :return: self
        """
        self.__pmListener = pmListener
        return self


问题


面经


文章

微信
公众号

扫码关注公众号