Why is dictionary.keys() a list and not a set?

"Martin v. Löwis" martin at v.loewis.de
Sun Nov 27 09:24:31 EST 2005


Christoph Zwerschke wrote:
> Anyway, the original question was: Are mylist1 and mylist2 (as above) to 
> be considered "hashable" types or not?

I long forgot was the original question was (I thought it was
"Why is dictionary.keys() a list and not a set?" :-); anyway,
the answer to this question is certainly "yes".

Regards,
Martin



More information about the Python-list mailing list