robustapply

Robust apply mechanism

Provides a function "call", which can sort out what arguments a given callable object can take, and subset the given arguments to match only those which are acceptable.


Attributes

a __package__

None

Functions

f function(receiver) ...

Get function-like callable object for given receiver

returns (function_or_method, codeObject, fromMethod)

If fromMethod is true, then the callable already has its first argument bound

f robustApply(receiver, *arguments, **named) ...

Call receiver with arguments and an appropriate subset of named

See the source for more information.