Super Tuples
Paul Prescod
paul at prescod.net
Tue Dec 28 03:38:28 EST 1999
"Barry A. Warsaw" wrote:
>
> Neat idea, but what about
>
> >>> second, hour, minute = (hour=24, minute=0, second=0)
> >>> print hour
It's the same as:
date =( 24, 0, 0 )
second, hour, minute = date
The only difference is that in YOUR example it is easier to find your
bug.
> Even though I think this should print `0', it does look weird.
The weirdness is your best friend.
Paul Prescod
More information about the Python-list
mailing list