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

Function sprint

Lib/idlelib/config.py:885–891  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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

Callers 1

dumpCfgFunction · 0.85

Calls 3

strFunction · 0.85
crc32Function · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…