[EMAIL PROTECTED] wrote:
> I can't speak for your code, but this is the most common use of keys in
> my coding:
> # d is some dictionary
> keys = d.keys()
> keys.sort()
> for k in keys:
>   #blah

This you can rewrite quite effectively as:

     for k in sorted(d):
         #blah

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to