Re: Unpacking Tuples

2009-11-30 Thread Gary Herron
Joel Davis wrote: I hate to post such a simple Q and A here, but I seriously can't find it anywhere. Python (unsure of starting with which version) enables the remainder of the tuple to be placed in a "catch-all", for example: myTuple = (1,2,3,4) varOne, varTwo, *remaindingTuple = myTuple.

Re: Unpacking Tuples

2009-11-30 Thread Chris Rebert
On Mon, Nov 30, 2009 at 12:17 AM, Joel Davis wrote: > I hate to post such a simple Q and A here, but I seriously can't find > it anywhere. Python (unsure of starting with which version) enables > the remainder of the tuple to be placed in a "catch-all", for example: > > >>> myTuple = (1,2,3,4) >>>

Unpacking Tuples

2009-11-30 Thread Joel Davis
I hate to post such a simple Q and A here, but I seriously can't find it anywhere. Python (unsure of starting with which version) enables the remainder of the tuple to be placed in a "catch-all", for example: >> myTuple = (1,2,3,4) >> varOne, varTwo, *remaindingTuple = myTuple. where the values