def __repr__(self):
contents = '<STR_LIT>'<EOL>n = <NUM_LIT:0><EOL>for n, (key, item) in enumerate(self.items()):<EOL><INDENT>contents += '<STR_LIT>' % (key, item)<EOL>if n == <NUM_LIT:5>:<EOL><INDENT>break<EOL><DEDENT><DEDENT>if contents:<EOL><INDENT>contents = contents[:-<NUM_LIT:2>]<EOL><DEDENT>if n == <NUM_LIT:5>:<EOL><INDENT>contents += '<STR_LIT>'<EOL><DEDENT>return '<STR_LIT>' % (self.__class__.__name__, contents)<EOL>
limit the number of shown items to 5 and give it a more dict-like view