A forest of comments starts with multiple top-level comments.
Each of these comments can be a tree of replies.
Return the comment at position index in the list.
This method is to be used like an array access, such as:
first_comment = submission.comments
Alternatively, the presence of this method enables one to iterate over
all top_level comments, like so:
for comment in submission.comments:
Initialize a CommentForest instance.
Return the number of top-level comments in the forest.
Return a flattened list of all Comments.
This list may contain MoreComments instances if
replace_more() was not called first.
Update the comment forest by resolving instances of MoreComments.
A list of MoreComments instances that were not
For example, to replace up to 32 MoreComments instances of a
submission = reddit.submission('3hahrw')
Alternatively, to replace MoreComments instances within the
replies of a single comment try:
comment = reddit.comment('d8r4im1')
This method can take a long time as each replacement will
discover at most 20 new Comment or
MoreComments instances. As a result, consider
looping and handling exceptions until the method returns
successfully. For example:
print('Handling replace_more exception')
If this method is called, and the comments are refreshed,
calling this method again will result in a