unzip() -- Not really a module, but a standard library function. Why isn't it in the standard library? It seems like I'm always adding it to my code. I think I once heard an argument against it, but I forget what it was. And yet I still find myself wanting unzip.
def unzip(list): if len(list) == 0: return () l = [] for t in range(len(list[0])): l.append(map( lambda x,t=t: x[t], list )) return tuple(l) Yours, Noah Reinhold Birkenfeld wrote: > Hello, > > at the moment python-dev is discussing including Jason Orendorff's path module > into the standard library. > > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and useful enough to > be granted a place in the stdlib? > > For my part, ctypes seems like a suggestion to start with. > > Reinhold -- http://mail.python.org/mailman/listinfo/python-list