This commit is contained in:
Georg Brandl 2010-09-25 13:30:03 +00:00
parent aa7fbd9564
commit a0fc3d37d3
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ which incur interpreter overhead.
# feed the entire iterator into a zero-length deque
collections.deque(iterator, maxlen=0)
else:
# advance to the emtpy slice starting at position n
# advance to the empty slice starting at position n
next(islice(iterator, n, n), None)
def nth(iterable, n, default=None):