def __init__(self, iterable):
    """Constructor for peekableIter; see class docstring for param details."""
    self._iterable = iter(iterable)
    try:
      self._head = self._iterable.next()
    except StopIteration:
      self._head = None
def __init__ ( self , iterable ) : self . _iterable = iter ( iterable ) try : self . _head = self . _iterable . next ( ) except StopIteration : self . _head = None
Constructor for peekableIter; see class docstring for param details.