PRAW v5.1.0 Release Notes

Release Date: 2017-08-31 // over 4 years ago
  • Added

    •, with methods :meth:.RedditorStream.submissions() and :meth:.RedditorStream.comments() to stream a Redditor's comments or submissions
    • :class:.RedditorStream has been added to facilitate
    • :meth:.Inbox.collapse to mark messages as collapsed.
    • :meth:.Inbox.uncollapse to mark messages as uncollapsed.
    • Raise :class:.ClientException when calling :meth:~.Comment.refresh when the comment does not appear in the resulting comment tree.
    • :meth:.Submission.crosspost to crosspost to a subreddit.

    🛠 Fixed

    • Calling :meth:~.Comment.refresh on a directly fetched, deeply nested :class:.Comment will additionally pull in as many parent comments as possible (currently 8) enabling significantly quicker traversal to the top-most :class:.Comment via successive :meth:.parent() calls.
    • Calling :meth:~.Comment.refresh previously could have resulted in a AttributeError: 'MoreComments' object has no attribute '_replies' exception. This situation will now result in a :class:.ClientException.
    • Properly handle BAD_CSS_NAME errors when uploading stylesheet images with invalid filenames. Previously an AssertionError was raised.
    • :class:.Submission's gilded attribute properly returns the expected value from reddit.