Death to tuples!
Steven Bethard
steven.bethard at gmail.com
Mon Nov 28 11:49:17 EST 2005
Dan Bishop wrote:
> Mike Meyer wrote:
>
>>Is there any place in the language that still requires tuples instead
>>of sequences, except for use as dictionary keys?
>
> The % operator for strings. And in argument lists.
>
> def __setitem__(self, (row, column), value):
> ...
Interesting that both of these two things[1][2] have recently been
suggested as candidates for removal in Python 3.0.
[1]http://www.python.org/dev/summary/2005-09-01_2005-09-15.html#string-formatting-in-python-3-0
[2]http://www.python.org/dev/summary/2005-09-16_2005-09-30.html#removing-nested-function-parameters
STeVe
More information about the Python-list
mailing list