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

Method bold

Lib/pydoc.py:1233–1235  ·  view source on GitHub ↗

Format a string in bold by overstriking.

(self, text)

Source from the content-addressed store, hash-verified

1231 repr = _repr_instance.repr
1232
1233 def bold(self, text):
1234 """Format a string in bold by overstriking."""
1235 return ''.join(ch + '\b' + ch for ch in text)
1236
1237 def indent(self, text, prefix=' '):
1238 """Indent text by prepending a given prefix to each line."""

Callers 5

sectionMethod · 0.95
docclassMethod · 0.95
docroutineMethod · 0.95
docdataMethod · 0.95
docotherMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected