How to use list as key of dictionary?
lasses_weil at klapptsowieso.net
Wed Nov 7 19:12:56 CET 2007
Duncan Booth wrote:
> Wildemar Wildenburger <lasses_weil at klapptsowieso.net> wrote:
>> maybe something like this could help:
>> def tupleize(non_tuple):
>> return tuple(tupleize(thing) for thing in non_tuple)
>> except TypeError:
>> # non_tuple is not iterable
>> return non_tuple
> Just don't try passing that a string or anything containing a string.
Outch! Right you are.
We'll that's the genius of paid updates for you.
More information about the Python-list