You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1)url dismatch
2) replace_more (limit=None) makes the len(comments) bigger than original
3) could you make clear about what is difference between limit = 0 and None in replace_more
the len() of toplevel of reddit.submission.comments are different when replace_more is 0 , None or no replace_more
the len(reddit.submission.comments ) is 198 when replace_more (limit=0)
the len(reddit.submission.comments ) is 218 when replace_more (limit=None)
the len(reddit.submission.comments ) is 199 when no replace_more
Historically, Reddit is a place to post links. The url attribute refers to the url that is posted to Reddit not the url of the post on Reddit. That would be post.shortlink or post.permalink.
limit=None means there is not a limit to how many MoreComments PRAW will replace. limit=0 means no MoreComments get replaced. This is explained in the docs.
Describe the Bug
1)url dismatch
2) replace_more (limit=None) makes the len(comments) bigger than original
3) could you make clear about what is difference between limit = 0 and None in replace_more
Desired Result
when inputing submission = reddit.submission(url = "https://www.reddit.com/r/funny/comments/3g1jfi/buttons/")
and expecting the output of print(submission.url)
is the outcome is http://41.media.tumblr.com/a353323397c0aa0b4cfbc21eead3d48f/tumblr_ns7d7t7F6H1rvcmlco1_1280.jpg
the len() of toplevel of reddit.submission.comments are different when replace_more is 0 , None or no replace_more
the len(reddit.submission.comments ) is 198 when replace_more (limit=0)
the len(reddit.submission.comments ) is 218 when replace_more (limit=None)
the len(reddit.submission.comments ) is 199 when no replace_more
Code to reproduce the bug
My code does not include sensitive credentials
Relevant Logs
This code has previously worked as intended
Yes
Operating System/Environment
Windows
Python Version
3.10.13
PRAW Version
7.7.2.
Links, references, and/or additional comments?
No response
The text was updated successfully, but these errors were encountered: