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

Function un_random_mixed_op

Modules/_decimal/tests/randdec.py:471–479  ·  view source on GitHub ↗
(itr=None)

Source from the content-addressed store, hash-verified

469number_funcs = [randint, randfloat, randcomplex, randfraction]
470
471def un_random_mixed_op(itr=None):
472 if itr is None:
473 itr = 1000
474 for _ in range(itr):
475 for func in number_funcs:
476 yield func()
477 # Test garbage input
478 for x in (['x'], ('y',), {'z'}, {1:'z'}):
479 yield x
480
481def bin_random_mixed_op(prec, emax, emin, itr=None):
482 if itr is None:

Callers 1

all_unaryFunction · 0.85

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…