- py_func(+Module, +Function, -Return) is det
- py_func(+Module, +Function, -Return, +Options) is det
- Call Python Function in Module. The SWI-Prolog implementation is
equivalent to
py_call(Module:Function, Return)
. See py_call/2 for
details.
- Compatibility
- - PIP. See py_call/2 for notes. Note that, as this
implementation is based on py_call/2, Function can use chaining,
e.g.,
py_func(sys, path:append(dir), Return)
is accepted by this
implementation, but not portable.