Super Tuples

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Mon Dec 27 10:58:11 EST 1999


>>>>> "PP" == Paul Prescod <paul at prescod.net> writes:

    PP> I propose that in Python 1.6 tuples be given the demonstrated
    PP> features:

    >>> time = (hour=24, minute=00, second=00 )
    >>> print time.hour
    >>> 24

Neat idea, but what about

>>> second, hour, minute = (hour=24, minute=0, second=0)
>>> print hour

? :)

Even though I think this should print `0', it does look weird.

-Barry




More information about the Python-list mailing list