On Fri, 14 Sep 2007, Michael Langford wrote:

>   What you want is a set, not a list. Lucky for you, a python dict uses a
> set for its keys, so cheat and use that.

Is that true?

>>> d={1:"a", 2:"b"}
>>> k=d.keys()
>>> type(k)
<type 'list'>


_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to