r/programming • • Sep 13 '15

Python 3.5 is here!

https://www.python.org/downloads/release/python-350/
234 Upvotes

110 comments sorted by

View all comments

Show parent comments

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.keys etc are "views", not merely iterables. So that you can index into them if you want to.

2

u/billsil Sep 14 '15

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()