File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
source_py3/python_toolbox Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -471,14 +471,17 @@ def push_back(self):
471471
472472
473473def 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
477478def 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
481483def 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
You can’t perform that action at this time.
0 commit comments