Package nltk :: Module util :: Class LazyMappedList
[hide private]
[frames] | no frames]

Class LazyMappedList

source code

              object --+    
                       |    
    internals.Deprecated --+
                           |
          object --+       |
                   |       |
AbstractLazySequence --+   |
                       |   |
                 LazyMap --+
                           |
                          LazyMappedList

Use LazyMap instead.

Instance Methods [hide private]
 
__init__(self, lst, func)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from LazyMap: __getitem__, __len__, iterate_from

Inherited from AbstractLazySequence: __add__, __cmp__, __contains__, __hash__, __iter__, __mul__, __radd__, __repr__, __rmul__, count, index

Inherited from object: __delattr__, __getattribute__, __reduce__, __reduce_ex__, __setattr__, __str__

Static Methods [hide private]

Inherited from internals.Deprecated: __new__

Class Variables [hide private]

Inherited from AbstractLazySequence (private): _MAX_REPR_SIZE

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lst, func)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • function - The function that should be applied to elements of lists. It should take as many arguments as there are lists.
  • lists - The underlying lists.
  • cache_size - Determines the size of the cache used by this lazy map. (default=5)
Overrides: LazyMap.__init__
(inherited documentation)