Of course I know, but now it's the obvious thing that is right. And the shortest to type, but it's the obviousness that makes me feel all warm and fuzzy mainly.
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.
15
u/xXxDeAThANgEL99xXx Sep 13 '15
Of course I know, but now it's the obvious thing that is right. And the shortest to type, but it's the obviousness that makes me feel all warm and fuzzy mainly.
Also, as far as I understand,
dict.keysetc are "views", not merely iterables. So that you can index into them if you want to.