[Patches] [ python-Patches-1171417 ] bug fix for islice() in docs
SourceForge.net
noreply at sourceforge.net
Sun Mar 27 22:20:11 CEST 2005
Patches item #1171417, was opened at 2005-03-27 11:03
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1171417&group_id=5470
>Category: Library (Lib)
>Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Pernici Mario (pernici)
Assigned to: Raymond Hettinger (rhettinger)
Summary: bug fix for islice() in docs
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-03-27 15:20
Message:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1171417&group_id=5470
More information about the Patches
mailing list