Dictionary from list?

Russell E. Owen owen at astrono.junkwashington.emu
Tue Oct 23 12:32:46 EDT 2001


Thank you for a most mooving posting -- funniest I've read in a 
programming newsgroup in a long time.

For what it's worth, I'm bullish on Chris Barker's suggestion of some 
way of converting list of keys, list of values to a dictionary. Like 
Chris, I've written my own and use it a fair bit.

I have no opinion about converting the two proposed flavors of single 
lists to dicts (i.e. [key1, value1, key2, value2...] vs. [(key1, 
value1), (key2, value2)...]; they both sound useful, are both easy to 
implement via user-written functions, and if either is implemented as a 
built-in, then folks are likely to have a cow about the missing one.

Regards,

-- Russell


In article <mailman.1003813882.5893.python-list at python.org>,
 "Tim Peters" <tim.one at home.com> wrote:

>[Andrew Dalke]
>> Oh, don't get me wrong.  I'm one of those anchors trying to slow
>> the development of new core features in Python.  (New libraries
>> is a different thing.)  If dictionary(list) stays an error you
>> won't hear any complaints about me.
>
>I appreciate that.  However, the builtin dictionary() cow has already
>escaped the 2.2 barn, so the question now is whether we let it roam the
>Python pasture with two broken legs, or put a spiffy sequence saddle on it
>so you can gallop on it in comfort into the mooooonlight.
>
>> But I'm also one of those people who likes details -- (forest?
>> tree?  I like the BARK! :)
>
>grow-up-it's-a-cow-not-a-dog-ly y'rs  - tim



More information about the Python-list mailing list