Python 3: dict & dict.keys()
Peter Otten
__peter__ at web.de
Wed Jul 24 02:23:08 EDT 2013
Ethan Furman wrote:
> So, my question boils down to: in Python 3 how is dict.keys() different
> from dict? What are the use cases?
I just grepped through /usr/lib/python3, and could not identify a single
line where some_object.keys() wasn't either wrapped in a list (or set,
sorted, max) call, or iterated over.
To me it looks like views are a solution waiting for a problem.
More information about the Python-list
mailing list