PRAW v4.5.0 Release Notes

Release Date: 2017-04-29 // over 4 years ago
  • โž• Added

    • :meth:~praw.models.reddit.subreddit.Modmail.unread_count to get unread count by conversation state.
    • :meth:~praw.models.reddit.subreddit.Modmail.bulk_read to mark conversations as read by conversation state.
    • :meth:~praw.models.reddit.subreddit.Modmail.subreddits to fetch subreddits using new modmail.
    • :meth:~praw.models.reddit.subreddit.Modmail.create to create a new modmail conversation.
    • :meth:~praw.models.ModmailConversation.read to mark modmail conversations as read.
    • :meth:~praw.models.ModmailConversation.unread to mark modmail conversations as unread.
    • :meth:~praw.models.reddit.subreddit.Modmail.conversations to get new modmail conversations.
    • :meth:~praw.models.ModmailConversation.highlight to highlight modmail conversations.
    • :meth:~praw.models.ModmailConversation.unhighlight to unhighlight modmail conversations.
    • :meth:~praw.models.ModmailConversation.mute to mute modmail conversations.
    • :meth:~praw.models.ModmailConversation.unmute to unmute modmail conversations.
    • :meth:~praw.models.ModmailConversation.archive to archive modmail conversations.
    • :meth:~praw.models.ModmailConversation.unarchive to unarchive modmail conversations.
    • :meth:~praw.models.ModmailConversation.reply to reply to modmail conversations.
    • :meth:~praw.models.reddit.subreddit.Modmail.__call__ to get a new modmail conversation.
    • :meth:.Inbox.stream to stream new items in the inbox.
    • Exponential request delay to all streams when no new items are returned in a request. The maximum delay between requests is 66 seconds.

    ๐Ÿ”„ Changed

    • :meth:.submit accepts selftext='' to create a title-only submission.
    • :class:.Reddit accepts requestor_class=cls for a customized requestor class and requestor_kwargs={'param': value} for passing arguments to requestor initialization.
    • :meth:~praw.models.reddit.subreddit.SubredditStream.comments, :meth:~praw.models.reddit.subreddit.SubredditStream.submissions, and :meth:~praw.models.Subreddits.stream accept a pause_after argument to allow pausing of the stream. The default value of None retains the preexisting behavior.

    ๐Ÿ—„ Deprecated

    • 0๏ธโƒฃ cloudsearch will no longer be the default syntax for :meth:.Subreddit.search in PRAW 5. Instead lucene will be the default syntax so that PRAW's default is aligned with Reddit's default.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix bug where :class:.WikiPage revisions with deleted authors caused TypeError.
    • :class:.Submission attributes comment_limit and comment_sort maintain their values after making instances non-lazy.