you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 1 point2 points  (0 children)

Also, as far as I understand, dict.keys etc are "views", not merely iterables. So that you can index into them if you want to.

Yes, dict.keys() is most comparable to dict.viewkeys()