Skip to content

Commit 6bf6719

Browse files
committed
-
1 parent b07a03b commit 6bf6719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source_py3/python_toolbox/cute_iter_tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,17 @@ def push_back(self):
471471

472472

473473
def iterate_pop(poppable, lazy_tuple=False):
474+
'''Iterate by doing `.pop()` until no more items.'''
474475
return call_until_exception(poppable.pop, IndexError,
475476
lazy_tuple=lazy_tuple)
476477

477478
def iterate_popleft(left_poppable, lazy_tuple=False):
479+
'''Iterate by doing `.popleft()` until no more items.'''
478480
return call_until_exception(left_poppable.popleft, IndexError,
479481
lazy_tuple=lazy_tuple)
480482

481483
def iterate_popitem(item_poppable, lazy_tuple=False):
484+
'''Iterate by doing `.popitem()` until no more items.'''
482485
return call_until_exception(item_poppable.popitem, KeyError,
483486
lazy_tuple=lazy_tuple)
484487

0 commit comments

Comments
 (0)