MCPcopy Index your code
hub / github.com/RustPython/RustPython / _pprint_tuple

Method _pprint_tuple

Lib/pprint.py:259–264  ·  view source on GitHub ↗
(self, object, stream, indent, allowance, context, level)

Source from the content-addressed store, hash-verified

257 _dispatch[list.__repr__] = _pprint_list
258
259 def _pprint_tuple(self, object, stream, indent, allowance, context, level):
260 stream.write('(')
261 endchar = ',)' if len(object) == 1 else ')'
262 self._format_items(object, stream, indent, allowance + len(endchar),
263 context, level)
264 stream.write(endchar)
265
266 _dispatch[tuple.__repr__] = _pprint_tuple
267

Callers

nothing calls this directly

Calls 3

_format_itemsMethod · 0.95
lenFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected