assign dict by value to list

Bryan Olson fakeaddress at
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)

 > The complete code is here:

Looks like you could use Python's ConfigParser module.


More information about the Python-list mailing list