[Tutor] use of the newer dict types

Jim Mooney cybervigilante at gmail.com
Thu Jul 25 23:49:50 CEST 2013


If you do dict.keys() in 2.7 you get a list, which is quite handy. But
if you do it in 3.3 you get this odd dict_keys type, for which I have
yet to find a use, and which just requires an extra list step to use.
The same for values. Since most changes from 2.7 to 3.3 were
improvements, what am I missing here? What is the use of these types?

-- 
Jim

Eric Holder never saw a Bankster he didn't love.


More information about the Tutor mailing list