record_call

function of dascore.utils.patch source

record_call(
    out: Patch ,
    patch: Patch ,
    patch_func: Callable ,
    args: <class ‘tuple ,
    kwargs: collections.abc.Mapping[str, <class ’object] ,
)-> ’dc.Patch’

Return out carrying what a call to patch_func records.

The history string and the two ids, in one new attrs object: an operation should cost one new patch, not one per thing it stamps.

Public because what an operation records must not depend on how it was carried out: a spool which pushes a selection into the read still has to record the select it then skips.