MCPcopy Create free account
hub / github.com/RustPython/RustPython / dump_info

Function dump_info

Lib/test/pythoninfo.py:1075–1085  ·  view source on GitHub ↗
(info, file=None)

Source from the content-addressed store, hash-verified

1073
1074
1075def dump_info(info, file=None):
1076 title = "Python debug information"
1077 print(title)
1078 print("=" * len(title))
1079 print()
1080
1081 infos = info.get_infos()
1082 infos = sorted(infos.items())
1083 for key, value in infos:
1084 value = value.replace("\n", " ")
1085 print("%s: %s" % (key, value))
1086
1087
1088def main():

Callers 1

mainFunction · 0.85

Calls 6

lenFunction · 0.85
sortedFunction · 0.85
get_infosMethod · 0.80
printFunction · 0.50
itemsMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected