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

Method print

Lib/traceback.py:1569–1575  ·  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

1567
1568
1569 def print(self, *, file=None, chain=True, **kwargs):
1570 """Print the result of self.format(chain=chain) to 'file'."""
1571 colorize = kwargs.get("colorize", False)
1572 if file is None:
1573 file = sys.stderr
1574 for line in self.format(chain=chain, colorize=colorize):
1575 print(line, file=file, end="")
1576
1577
1578_MAX_CANDIDATE_ITEMS = 750

Callers 2

print_exceptionFunction · 0.95
test_printMethod · 0.45

Calls 3

formatMethod · 0.95
printFunction · 0.50
getMethod · 0.45

Tested by 1

test_printMethod · 0.36