Efficiently Split A List of Tuples

Peter Hansen peter at engcorp.com
Thu Jul 14 12:49:08 EDT 2005


Richard wrote:
> On Wed, 13 Jul 2005 20:53:58 -0400, Peter Hansen wrote:
>>a = ((1,2), (3, 4), (5, 6), (7, 8), (9, 10))
>>zip(*a)

> This seems to work.  Thanks.
> 
> Where do I find documentation on "*args"?

In the language reference: http://docs.python.org/ref/calls.html#calls

-Peter



More information about the Python-list mailing list