In Python 3, dictionary methods no longer return lists
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-03-24T16:01:44Z
Indexed on
2010/03/24
16:03 UTC
Read the original article
Hit count: 106
python-3.x
In python 2, keys(), values() and items() returned lists. But in Python 3, they are dynamic views and to get these dynamic views to be lists, use the list() function to convert.
Ok, I get that but what the heck is a dynamic view? What is it used for?
Thanks
© Stack Overflow or respective owner