term.fun

Erlang funs: Fun (a closure) and Export (fun M:F/A).

class term.fun.Export(module, function, arity)

Bases: BaseTerm

An external fun, fun Module:Function/Arity (EXPORT_EXT). Not callable from Python, but it can be sent back to Erlang unchanged.

Parameters:
  • module (str) – the module, an atom

  • function (str) – the function name, an atom

  • arity (int) – the number of arguments, 0 or more

class term.fun.Fun(mod, arity, pid, index, uniq, old_index, old_uniq, free)

Bases: BaseTerm

Represents a pointer to a function in Erlang, with some variable values captured. Not callable from Python.