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

Method print

Lib/traceback.py:1638–1644  ·  view source on GitHub ↗

Print the result of self.format(chain=chain) to 'file'.

(self, *, file=None, chain=True, **kwargs)

Source from the content-addressed store, hash-verified

1636
1637
1638 def print(self, *, file=None, chain=True, **kwargs):
1639 """Print the result of self.format(chain=chain) to 'file'."""
1640 colorize = kwargs.get("colorize", False)
1641 if file is None:
1642 file = sys.stderr
1643 for line in self.format(chain=chain, colorize=colorize):
1644 print(line, file=file, end="")
1645
1646
1647_MAX_CANDIDATE_ITEMS = 750

Callers 1

print_exceptionFunction · 0.95

Calls 2

formatMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected