def stream_list(lst):
 def sublist_iterator(start, stop):
  return iter(lst[start:stop])
 start = 0
 while True:
  stop = len(lst)
  (yield sublist_iterator(start, stop))
  start = stop

def stream_list ( lst ) : def sublist_iterator ( start , stop ) : return iter ( lst [ start : stop ] ) start = 0 while True : stop = len ( lst ) ( yield sublist_iterator ( start , stop ) ) start = stop
given a list .