assign dict by value to list

Bryan Olson fakeaddress at nowhere.org
Wed Sep 7 10:26:41 CEST 2005


Phill Atwood wrote:
[...]
 > So how do I add a dictionary into a list by value rather than
 > by reference?

Is rec.items() what you want? It returns a list of (key, value)
tuples.


 > The complete code is here:
[...]

Looks like you could use Python's ConfigParser module.

    http://docs.python.org/lib/module-ConfigParser.html


-- 
--Bryan



More information about the Python-list mailing list