Package lastfm :: Module lazylist

[hide private]
[frames] | no frames]

# Module lazylist

source code

Module for the creation and use of iterator-based lazy lists. this module defines a class LazyList which can be used to represent sequences of values generated lazily. One can also create recursively defined lazy lists that generate their values based on ones previously generated.

Backport to python 2.5 by Michael Pust

Author: Dan Spitz

Classes | [hide private]

| LazyList A Sequence whose values are computed lazily by an iterator.
| RecursiveLazyList
| RecursiveLazyListFactory

Functions | [hide private]

lazylist(gen) Decorator for creating a RecursiveLazyList subclass. | source code

Variables | [hide private]

| __package__ = ``'``lastfm``'``

Imports: itertools

Function Details | [hide private]

### lazylist(gen)

source code

Decorator for creating a RecursiveLazyList subclass. This should decorate a generator function taking the LazyList object as its first argument which yields the contents of the list in order.