A really bad idea.

Carl Banks imbosol at vt.edu
Fri Nov 15 00:08:25 EST 2002


Paul Foley wrote:
> On Thu, 14 Nov 2002 15:33:33 -0800, Russell E Owen wrote:
> 
>> On the other hand, I like zip just fine (though I lament the lack of an 
>> unzip counterpart).
> 
> Eh?  Zip is its own inverse!


Sure?

>>> a = [(1,2,3,4),(5,6,7,8)]
>>> zip(zip(a))
[(((1, 2, 3, 4),),), (((5, 6, 7, 8),),)]



-- 
CARL BANKS



More information about the Python-list mailing list