def get__repr__(self, params):
def format_params(params):<EOL><INDENT>if atLeastPython3:<EOL><INDENT>items = list(params.items())<EOL><DEDENT>else:<EOL><INDENT>items = list(params.items())<EOL><DEDENT>for k, v in sorted(items, key=itemgetter(<NUM_LIT:0>), reverse=True):<EOL><INDENT>isText = isinstance(v, str)<EOL>if isText and not atLeastPython3:<EOL><INDENT>v = v.encode('<STR_LIT:utf-8>')<EOL><DEDENT>yield '<STR_LIT>'.format(k=k, v=v) if isText else '<STR_LIT>'.format(k=k, v=v)<EOL><DEDENT><DEDENT>return '<STR_LIT>'.format(<EOL>class_name=self.__class__.__name__,<EOL>params="<STR_LIT:U+002CU+0020>".join(list(format_params(params)))<EOL>)<EOL>
Converts the object to a nicely printable string.