I'm a maintainer for PRAW. Where does it say that you cannot get the username of a Comment
objects author? Because that is incorrect and needs to be fixed.
Anyway, a Comment
has a author
attribute, which is a Redditor
instance of the author.
import praw
r = praw.Reddit(UNIQUE_AND_DESCRIPTIVE_USERAGENT)
submission = r.get_submission("http://www.reddit.com/r/redditdev/comments/16m0uu/praw_20_is_coming_release_in_2_days/")
comment = submission.comments[0]
author = comment.author # This returns a ``Redditor`` object.
print(author.name) # The username