dict view to list

alex23 wuwei23 at gmail.com
Fri Mar 27 08:14:18 EDT 2009


On Mar 27, 3:44 pm, Aaron Brady <castiro... at gmail.com> wrote:
> Is there a possibility of the dict_values, dict_items, and dict_keys
> objects growing a 'tolist' method?  It's one of those little things
> that contributes to one's user experience.

Probably not, because the Python approach is to use the builtins. I'm
not sure what you feel mydict.values().tolist() might offer over the
conventional list(mydict.values()).

So yeah, -1.



More information about the Python-list mailing list