MCPcopy Index your code
hub / github.com/python/cpython / formatvalue

Method formatvalue

Lib/pydoc.py:1517–1519  ·  view source on GitHub ↗

Format an argument default value as text.

(self, object)

Source from the content-addressed store, hash-verified

1515 return title + '\n' + self.indent(contents.rstrip(), ' | ') + '\n'
1516
1517 def formatvalue(self, object):
1518 """Format an argument default value as text."""
1519 return '=' + self.repr(object)
1520
1521 def docroutine(self, object, name=None, mod=None, cl=None, homecls=None):
1522 """Produce text documentation for a function or method object."""

Callers

nothing calls this directly

Calls 1

reprMethod · 0.45

Tested by

no test coverage detected