G
gf gf
I'd like to associate certain lists with keywords, and
retrieve them. But this is not possible as lists are
not hashable.
What is the best workaround? I don't mind making my
lists immutable. Is there a way to tupelize them?
I tried mydict[mykey]=([a for a in list]) but it
didn't seem to work.
Thanks!
PS If possible please cc me on all responses.
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
retrieve them. But this is not possible as lists are
not hashable.
What is the best workaround? I don't mind making my
lists immutable. Is there a way to tupelize them?
I tried mydict[mykey]=([a for a in list]) but it
didn't seem to work.
Thanks!
PS If possible please cc me on all responses.
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/