|
From: NICK V. <ner...@gm...> - 2008-09-07 05:20:42
|
There seems to be a bug when trying to reconstruct a dictionary that
contains a list. The first set of dictionary keys will parse out but
the values just become the string repr of the rest of the
dictionary/list.
Here is the saved string.
clusters = "{'name': 'Default Cluster', 'servers': [{'ip':
'127.0.0.1', 'name': 'Demo Server', 'port': '11211'}]}",
This becomes
config['cluster'] = "{'name': 'Default Cluster', 'servers': [{'ip':
'127.0.0.1', 'name': 'Demo Server', 'port': '11211'}]}"
This initial def was this
config['clusters'] = [
{
'name': 'Default Cluster',
'servers': [
{
'ip': '127.0.0.1',
'name': Demo Server',
'port': '11211'
}
]
}
]
Hopefully that makes since.
--
Nick Verbeck - NerdyNick
----------------------------------------------------
NerdyNick.com
VivaLaOpenSource.com
Coloco.ubuntu-rocks.org
|