This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pernici
Recipients
Date 2005-03-27.16:03:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The python implementation of islice() in
itertools-functions.html
fails the following test, unlike itertools.islice():

def test_islice():
  it = iter(range(10))
  a = list(islice(it, 0,3))
  next = it.next()
  assert next == 3

test_islice()


A fix is given in the attached file.
History
Date User Action Args
2007-08-23 15:42:22adminlinkissue1171417 messages
2007-08-23 15:42:22admincreate