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

Function ternary_optarg

Modules/_decimal/tests/randdec.py:569–575  ·  view source on GitHub ↗
(prec, exp_range, itr)

Source from the content-addressed store, hash-verified

567 yield a, b, c
568
569def ternary_optarg(prec, exp_range, itr):
570 for _ in range(100):
571 a = randdec(prec, 2*exp_range)
572 b = randdec(prec, 2*exp_range)
573 c = randdec(prec, 2*exp_range)
574 yield a, b, c, None
575 yield a, b, c, None, None

Callers 1

test_ternaryFunction · 0.90

Calls 1

randdecFunction · 0.85

Tested by 1

test_ternaryFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…