By creating a wrapper class that can contain both praw comments and submissions, a lot of type checking code can be removed or consolidated. Class methods can also offer a consolidated way to perform similar functions on both comments and submissions without having to have different code paths for each distributed in many other places in the code.
By creating a wrapper class that can contain both praw comments and submissions, a lot of type checking code can be removed or consolidated. Class methods can also offer a consolidated way to perform similar functions on both comments and submissions without having to have different code paths for each distributed in many other places in the code.