front.tools#
Tools using front, or useful when using front.
Classes
A sized iterable container over the items of |
|
An object with |
|
|
A mapping view of a sequence where the items of the sequence are both keys and values. |
- class front.tools.FactoryFedSizedIterableContainer(iterable_factory)[source]#
Bases:
SizedIterableContainerA sized iterable container over the items of
iterable_factory(), re-called on every use.>>> c = FactoryFedSizedIterableContainer(lambda: range(3)) >>> list(c), len(c), 2 in c, 5 in c ([0, 1, 2], 3, True, False)