Composition

class aaron.composition.Composition(*items)

a single composition, possibly with other compositions inside it

__call__(*args, **kwargs)

Call has two basic steps: getting an initial value, then running that initial value through each step of the composition.

Note that the initial function will always receive *args and **kwargs. All subsequent calls respect the second pair of the tuple, which will splat the output of the previous function (using the form func(*result).)

__gt__(other)

Use > to append to the composition, without splatting.

__init__(*items)

initialize this Composition by _wrapping each item in a list

__rshift__(other)

Use >> to append to the composition, with splatting.

__weakref__

list of weak references to the object (if defined)

Project Versions

Previous topic

API

Next topic

Decorators

This Page