list for char in iterator iterator shift -1 if char break list append

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
list=[]
for char in iterator:
iterator.shift(-1)
if char=='e':
break
list.append(_get_extractor(char)(iterator))
return list