Ahh, my pitiful form of flattening a list that cheats...
def flatten(li):
li = str(li)
li = li.replace("[","")
li = li.replace("]","")
li = li.replace("(","")
li = li.replace(")","")
li = "[%s]"%li
return eval(li)It works! It's probably just a bit slower.
Jacob Schmidt
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
