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

Function all_binary

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

Source from the content-addressed store, hash-verified

531 yield randdec(prec, exp_range), None, None
532
533def all_binary(prec, exp_range, itr):
534 for a, b in bin_close_to_pow10(prec, exp_range, itr):
535 yield a, b
536 for a, b in bin_close_numbers(prec, exp_range, -exp_range, itr):
537 yield a, b
538 for a, b in bin_incr_digits(prec, exp_range, itr):
539 yield a, b
540 for a, b in bin_randfloat():
541 yield a, b
542 for a, b in bin_random_mixed_op(prec, exp_range, -exp_range, itr):
543 yield a, b
544 for a, b in logical_bin_incr_digits(prec, itr):
545 yield a, b
546 for _ in range(100):
547 yield randdec(prec, exp_range), randdec(prec, exp_range)
548
549def binary_optarg(prec, exp_range, itr):
550 for _ in range(100):

Callers 2

test_binaryFunction · 0.90
test_quantize_apiFunction · 0.90

Calls 7

bin_randfloatFunction · 0.90
bin_close_to_pow10Function · 0.85
bin_close_numbersFunction · 0.85
bin_incr_digitsFunction · 0.85
bin_random_mixed_opFunction · 0.85
logical_bin_incr_digitsFunction · 0.85
randdecFunction · 0.85

Tested by 2

test_binaryFunction · 0.72
test_quantize_apiFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…