Super Tuples

Eugene Goodrich bitbucket at isomedia.com
Tue Dec 28 17:52:03 EST 1999


When I started in Python, my PyMentor described tuples as immutable
lists.  When they start acting like much more than that, isn't it time
to use an object?

     -Eugene

>
>But then we have an object. It is not a tuple. If you feel that tuples
>have no virtues then you should petition for their removal from Python.
>If you feel that they DO have virtues then you should argue more
>persuasively that improving them somehow hurts things.
>
>> Is this the start of a switching to tuple-oriented programming instead
>> of OO-programming?
>
>No. It is the start of making tuples more useful. That doesn't destroy
>OO. I strongly doubt that serious Python programmers would abandon
>objects for tuples. Tuples don't even have a concept of methods.
>
> Paul Prescod
>

import binascii; print binascii.a2b_base64 ('ZXVnZW5lQGlzb21lZGlhLmNvbQ==')



More information about the Python-list mailing list