def list_comments(thread_uid):
with content.pipeline() as pipe:<EOL><INDENT>comments_key = build_key(THREAD_COMMENTS_KEY, thread_uid)<EOL>uids = []<EOL>for comment_uid in links.lrange(comments_key, <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>pipe.hgetall(build_key(COMMENT_KEY, thread_uid, comment_uid))<EOL>uids.append(comment_uid)<EOL><DEDENT>return OrderedDict(zip(uids, pipe.execute()))<EOL><DEDENT>
List all comments for given thread.

    :param thread_uid: Thread unique UID.