Scott David Daniels wrote:

>> map(tuple,map(reversed,list(enumerate(a))))
> 
> Doesn't the following read more easily?
 >
>      [tuple(reversed(x)) for x in enumerate(a)]

that involves two extra name lookups for each item in the sequence, 
though, so it doesn't execute more easily.

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to