In <[EMAIL PROTECTED]>, John Salerno wrote:
> [EMAIL PROTECTED] wrote:
>> It's just sequence unpacking. Did you know that this works?:
>>
>> pair = ("California","San Francisco")
>> state, city = pair
>> print city
>> # 'San Francisco'
>> print state
>> # 'California'
>
> Yes, I understand that. What confused me was if it had been written like
> this:
>
> pair = (("California","San Francisco"))
Uhm, you mean::
pair = (("California","San Francisco"),)
Note the extra comma to make that "a tuple in a tuple".
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list