Hello list,
I could use some help extracting the keys/values of a list of
dictionaries from a string that is just the str() representation of the
list (the problem is related to some flat file format I'm using for file
IO).
Example:
>>> s = str(dict_list)
>>> s
'[{0: [2], 1: []}, {0: [], 1:
Fredrik Lundh wrote:
> Benjamin Georgi wrote:
>
>> I could use some help extracting the keys/values of a list of
>> dictionaries from a string that is just the str() representation of the
>> list (the problem is related to some flat file format I'm using fo