def _pprint_seq(seq, _nest_lvl=<NUM_LIT:0>, max_seq_items=None, **kwds):
if isinstance(seq, set):<EOL><INDENT>fmt = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>fmt = "<STR_LIT>" if hasattr(seq, '<STR_LIT>') else "<STR_LIT>"<EOL><DEDENT>if max_seq_items is False:<EOL><INDENT>nitems = len(seq)<EOL><DEDENT>else:<EOL><INDENT>nitems = max_seq_items or get_option("<STR_LIT>") or len(seq)<EOL><DEDENT>s = iter(seq)<EOL>r = [pprint_thing(next(s),<EOL>_nest_lvl + <NUM_LIT:1>, max_seq_items=max_seq_items, **kwds)<EOL>for i in range(min(nitems, len(seq)))]<EOL>body = "<STR_LIT:U+002CU+0020>".join(r)<EOL>if nitems < len(seq):<EOL><INDENT>body += "<STR_LIT>"<EOL><DEDENT>elif isinstance(seq, tuple) and len(seq) == <NUM_LIT:1>:<EOL><INDENT>body += '<STR_LIT:U+002C>'<EOL><DEDENT>return fmt.format(body=body)<EOL>
internal. pprinter for iterables. you should probably use pprint_thing()
rather then calling this directly.

bounds length of printed sequence, depending on options