_abcoll :: Iterator :: Class Iterator
[hide private]
[frames] | no frames]

Class Iterator

object --+    
         |    
  Iterable --+
             |
            Iterator

hash(x)

Nested Classes [hide private]
    Inherited from Iterable
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__iter__(self)
 
next(self)
Return the next item from the iterator.
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__hash__(x)
hash(x)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
Class Methods [hide private]
 
__subclasshook__(cls, C)
Abstract classes can override this to customize issubclass().
Class Variables [hide private]
  __abstractmethods__ = frozenset(['next'])
  _abc_cache = <_weakrefset.WeakSet object at 0x7fbe24d5fdd0>
  _abc_negative_cache_version = 1
  _abc_registry = <_weakrefset.WeakSet object at 0x7fbe24d5fd90>
    Inherited from Iterable
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7fbe227...
Properties [hide private]
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__iter__(self)

 
Overrides: Iterable.__iter__

__subclasshook__(cls, C)
Class Method

 

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

Overrides: object.__subclasshook__
(inherited documentation)

next(self)

 

Return the next item from the iterator. When exhausted, raise StopIteration