dict view to list

Aahz aahz at pythoncraft.com
Sat Apr 4 20:44:01 CEST 2009


In article <6b4065b0-6af7-4aff-8023-40e5d521faa0 at v19g2000yqn.googlegroups.com>,
Luis Gonzalez  <luismgz at gmail.com> wrote:
>
>Yes, I know the python approach is to use built-ins.
>But wouldn't it be cool if we could do mydict.values().tolist()
>instead?
>It would be more regular and intuitive and readable from an OO point
>of view.
>In my oppinion, this would be cleaner.
>Built-ins used like this look like an early decission made when
>designing an imperative language.

What kind of language do you think Python is?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."  --Brian W. Kernighan



More information about the Python-list mailing list