bsneddon wrote:
> This seemed to work for me if you are using 2.4 or greater and
> like list comprehension.
>>>> dict([ tuple(a.split("=")) for a in mylist[1:-1]])
> {'mike': 'manager', 'paul': 'employee', 'tom': 'boss'}
>
> should be faster than loopingThat's what he's doing (well, a generator expression, not a listcomp). It's just split across multiple lines (ew). -- -- http://mail.python.org/mailman/listinfo/python-list
