class_docstr: Baseclass for the `RepresentationPrinter` prettyprinter that is used to
  generate pretty reprs of objects.
  
  Contrary to the `RepresentationPrinter` this printer knows nothing
  about the default pprinters or the `_repr_pretty_` callback method.
class_docstr_tok: ["Baseclass","for","the","`","RepresentationPrinter","`","prettyprinter","that","is","used","to","generate","pretty","reprs","of","objects",".","Contrary","to","the","`","RepresentationPrinter","`","this","printer","knows","nothing","about","the","default","pprinters","or","the","`","_repr_pretty_","`","callback","method","."]
docstr: like enumerate, but with an upper limit on the number of items.
docstr_tok: ["like","enumerate",",","but","with","an","upper","limit","on","the","number","of","items","."]
code: def _enumerate(self, seq):
      """like enumerate, but with an upper limit on the number of items."""
      for idx, x in enumerate(seq):
          if self.max_seq_length and idx >= self.max_seq_length:
              self.text(",")
              self.breakable()
              self.text("...")
              return
          yield idx, x
  
imports: from __future__ import absolute_import, division, print_function
  import datetime
  import platform
  import re
  import sys
  import types
  from collections import deque
  from contextlib import contextmanager
  from io import StringIO
  from hypothesis.internal.compat import PY3, cast_unicode, get_stream_enc, string_types
label_desc: Use image node_id 7 for calling the PrettyPrinter obj's underlying member method code with example usage: obj._enumerate(seq) without return types