Source code for modelparameters.sympy.strategies.util
from __future__ import print_function, division
from .. import Basic
new = Basic.__new__
basic_fns = {'op': type,
'new': Basic.__new__,
'leaf': lambda x: not isinstance(x, Basic) or x.is_Atom,
'children': lambda x: x.args}
expr_fns = assoc(basic_fns, 'new', lambda op, *args: op(*args))