def get_comment_items(srs, src, count=4):
 link_fullnames = normalized_hot([sr._id for sr in srs])
 hot_links = Link._by_fullname(link_fullnames[:count], return_dict=False)
 top_comments = []
 for link in hot_links:
  builder = CommentBuilder(link, operators.desc('_confidence'), comment=None, context=None, num=1, load_more=False)
  listing = NestedListing(builder, parent_name=link._fullname).listing()
  top_comments.extend(listing.things)
 srs = Subreddit._byID([com.sr_id for com in top_comments])
 links = Link._byID([com.link_id for com in top_comments])
 comment_items = [ExploreItem(TYPE_COMMENT, src, srs[com.sr_id], links[com.link_id], com) for com in top_comments]
 return comment_items

def get_comment_items ( srs , src , count = 4 ) : link_fullnames = normalized_hot ( [ sr . _id for sr in srs ] ) hot_links = Link . _by_fullname ( link_fullnames [ : count ] , return_dict = False ) top_comments = [ ] for link in hot_links : builder = CommentBuilder ( link , operators . desc ( '_confidence' ) , comment = None , context = None , num = 1 , load_more = False ) listing = NestedListing ( builder , parent_name = link . _fullname ) . listing ( ) top_comments . extend ( listing . things ) srs = Subreddit . _byID ( [ com . sr_id for com in top_comments ] ) links = Link . _byID ( [ com . link_id for com in top_comments ] ) comment_items = [ ExploreItem ( TYPE_COMMENT , src , srs [ com . sr_id ] , links [ com . link_id ] , com ) for com in top_comments ] return comment_items
get hot links from srs .