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

Function binary_optarg

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

Source from the content-addressed store, hash-verified

547 yield randdec(prec, exp_range), randdec(prec, exp_range)
548
549def binary_optarg(prec, exp_range, itr):
550 for _ in range(100):
551 yield randdec(prec, exp_range), randdec(prec, exp_range), None
552 yield randdec(prec, exp_range), randdec(prec, exp_range), None, None
553
554def all_ternary(prec, exp_range, itr):
555 for a, b, c in tern_close_numbers(prec, exp_range, -exp_range, itr):

Callers 1

test_binaryFunction · 0.90

Calls 1

randdecFunction · 0.85

Tested by 1

test_binaryFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…