MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / sprint

Function sprint

tools/python-3.11.9-amd64/Lib/idlelib/config.py:884–890  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

882 line, crc = 0, 0
883
884 def sprint(obj):
885 nonlocal line, crc
886 txt = str(obj)
887 line += 1
888 crc = crc32(txt.encode(encoding='utf-8'), crc)
889 print(txt)
890 #print('***', line, crc, '***') # Uncomment for diagnosis.
891
892 def dumpCfg(cfg):
893 print('\n', cfg, '\n') # Cfg has variable '0xnnnnnnnn' address.

Callers 1

dumpCfgFunction · 0.85

Calls 4

strFunction · 0.85
crc32Function · 0.85
printFunction · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected