PyDocs

Nav

Functional Programming Modules

methodcaller

operator

function
  • methodcaller(name, /, *args, **kwargs)
Return a callable object that calls the given method on its operand.
After f = methodcaller('name'), the call f(r) returns r.name().
After g = methodcaller('name', 'date', foo=1), the call g(r) returns
r.name('date', foo=1).
0 Examples
No examples for operator/methodcaller.
See Also
No see-alsos for operator/methodcaller
0 Notes
No notes for methodcaller