dict view to list
zutesmog at gmail.com
Mon Mar 30 09:41:12 CEST 2009
I personally don't understand how somedict.values().to_list() is
actually preferable to
In the standard python idiom I am constructing a new object (which I
can control the type of) using a standard language mechanism (and I
can substitute list with set or for that matter
any other class that accepts an iterable as initial argument) where
as what you advocate
is calling some special method of an instance which in fact is a
factory for instantiating some
other class, this seems to be less flat than the standard idiom and
significantly less flexible.
and more typing ;-)
How do you see the to_list() to be better or contributing the the user
On Mar 27, 1: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.
> P.S. Yes, yes, I know, -1.
More information about the Python-list