keys() returns a list and my question was not about "how to" but more
like "why"...
I assumed there were some decisions behind this, rather than it's just
not implemented yet.

Best,
On Friday, April 10, 2009, Joshua Kugler <jos...@joshuakugler.com> wrote:
> Akira Kitada wrote:
>
>> The loop has to be:
>> """
>>>>> k = d.firstkey()
>>>>> while k != None:
>> ...    print k
>> ...    k = d.nextkey(k)
>> key2
>> key1
>> """
>
> Why not
>
> for key in d.keys():
>     print key
>
> That worked for me.
>
> j
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to