is_functor

(函数来自 pyomo.core.base.util)

pyomo.core.base.util.is_functor(obj)[source]

当且仅当定义了 obj.__call__ 时返回 true。