MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / format

Method format

tools/python-3.11.9-amd64/Lib/pprint.py:466–471  ·  view source on GitHub ↗

Format object for a specific context, returning a string and flags indicating whether the representation is 'readable' and whether the object represents a recursive construct.

(self, object, context, maxlevels, level)

Source from the content-addressed store, hash-verified

464 return repr
465
466 def format(self, object, context, maxlevels, level):
467 """Format object for a specific context, returning a string
468 and flags indicating whether the representation is 'readable'
469 and whether the object represents a recursive construct.
470 """
471 return self._safe_repr(object, context, maxlevels, level)
472
473 def _pprint_default_dict(self, object, stream, indent, allowance, context, level):
474 if not len(object):

Callers 4

isrecursiveMethod · 0.95
isreadableMethod · 0.95
_reprMethod · 0.95
_safe_reprMethod · 0.95

Calls 1

_safe_reprMethod · 0.95

Tested by

no test coverage detected