Package pypat :: Package behavioral :: Module iterator :: Class Iterable
[hide private]
[frames] | no frames]

Class Iterable

source code


An abstract class representing an Iterable object as part of the Iterator design pattern.

- External Usage documentation: U{https://github.com/tylerlaberge/PyPatterns/wiki/Behavioral-Pattern-Usage}
- External Iterator Pattern documentation: U{https://en.wikipedia.org/wiki/Iterator_pattern}

Instance Methods [hide private]
 
__next__(self)
All Iterable's must implement a __next__ method which eventually raises StopIteration.
source code
Method Details [hide private]

__next__(self)

source code 

All Iterable's must implement a __next__ method which eventually raises StopIteration.

Decorators:
  • @abstractmethod