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

Function log

Modules/_decimal/tests/deccheck.py:923–928  ·  view source on GitHub ↗
(fmt, args=None)

Source from the content-addressed store, hash-verified

921# ======================================================================
922
923def log(fmt, args=None):
924 if args:
925 sys.stdout.write(''.join((fmt, '\n')) % args)
926 else:
927 sys.stdout.write(''.join((str(fmt), '\n')))
928 sys.stdout.flush()
929
930def test_method(method, testspecs, testfunc):
931 """Iterate a test function through many context settings."""

Callers 9

test_methodFunction · 0.70
test_unaryFunction · 0.70
test_binaryFunction · 0.70
test_ternaryFunction · 0.70
test_formatFunction · 0.70
test_roundFunction · 0.70
test_from_floatFunction · 0.70
test_quantize_apiFunction · 0.70
deccheck.pyFile · 0.70

Calls 4

strFunction · 0.85
writeMethod · 0.45
joinMethod · 0.45
flushMethod · 0.45

Tested by 8

test_methodFunction · 0.56
test_unaryFunction · 0.56
test_binaryFunction · 0.56
test_ternaryFunction · 0.56
test_formatFunction · 0.56
test_roundFunction · 0.56
test_from_floatFunction · 0.56
test_quantize_apiFunction · 0.56