Issue 1171417: bug fix for islice() in docs (original ) (raw ) Issue1171417
Created on 2005-03-27 16:03 by pernici , last changed 2022-04-11 14:56 by admin . This issue is now closed .
Files
File name
Uploaded
Description
Edit
libitertools.diff
pernici,2005-03-27 16:09
diff to cvs: python/python/dist/src/Doc/lib/libitertools.tex Revision 1.34
Messages (2)
msg48060 - (view)
Author: Pernici Mario (pernici)
Date: 2005-03-27 16:03
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.
msg48061 - (view)
Author: Raymond Hettinger (rhettinger) *
Date: 2005-03-27 20:20
Logged In: YES user_id=80475 Checked in an alternate version of the supplied patch. Also, added the given test. See: Doc/lib/libitertools.tex 1.35 and 1.32.2.1 Lib/test/test_itertools.py 1.39
History
Date
User
Action
Args
2022-04-11 14:56:10
admin
set
github: 41764
2005-03-27 16:03:21
pernici
create