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

Method formatvalue

Lib/pydoc.py:1563–1565  ·  view source on GitHub ↗

Format an argument default value as text.

(self, object)

Source from the content-addressed store, hash-verified

1561 return title + '\n' + self.indent(contents.rstrip(), ' | ') + '\n'
1562
1563 def formatvalue(self, object):
1564 """Format an argument default value as text."""
1565 return '=' + self.repr(object)
1566
1567 def docroutine(self, object, name=None, mod=None, cl=None, homecls=None):
1568 """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