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

Method format

Lib/pprint.py:481–486  ·  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

479 return repr
480
481 def format(self, object, context, maxlevels, level):
482 """Format object for a specific context, returning a string
483 and flags indicating whether the representation is 'readable'
484 and whether the object represents a recursive construct.
485 """
486 return self._safe_repr(object, context, maxlevels, level)
487
488 def _pprint_default_dict(self, object, stream, indent, allowance, context, level):
489 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