Ich bin es mal wieder. Diesmal allerdings mit einem eindeutigen Problem :
Anscheinend bricht Python mit break nicht nur aus der inneren for-Schleife aus, sondern aus beiden for-Schleifen.
Weiß jemand Rat ?
Code: Alles auswählen
def iterate_second_value(edl_list, index_list):
edl_list_only_second_value = []
for each_index in index_list:
each_index_alone = each_index[0]
del edl_list[:each_index_alone]
for x in edl_list:
try:
if x[0] == "*" and x[1] == "FROM" and x[2] == "CLIP" and x[3] == "NAME:":
edl_list_only_second_value.append(x)
break
else:
continue
except IndexError:
continue
return edl_list_only_second_value
Mfg Gunnar