Issue #1 resolved

Please support python2.5

Evgeniy Tatarkin
created an issue

Remove next function

{{{

!python

def _iter_current_next(sequence): iterator = iter(sequence) current_item = iterator.next() while current_item != _nonexistent:

    # Support python2.5
    next_item = _nonexistent
    try:
        next_item = iterator.next()
    except StopIteration:
        pass

    # Only for python >= 2.6
    # next_item = next(iterator, _nonexistent)

    yield (current_item, next_item)
    current_item = next_item

}}}

Thanks :)

Comments (3)

  1. Log in to comment