K
Kris Caselden
Say I have some data:
The simplest why to write this to a file represents it as
[[1], [2]]
Unfortunately, if this is read back in via execfile(), the whole
dynamic nature of changing 'link' by changing 'a' and 'b' is lost. Is
there any way to write data so that the list name is written instead
of the list's values? Essentially, '[[a], ]' instead of '[[1],
[2]]'? Any help most appreciated.
a=[1]
b=[2]
link=[a,b]
The simplest why to write this to a file represents it as
[[1], [2]]
Unfortunately, if this is read back in via execfile(), the whole
dynamic nature of changing 'link' by changing 'a' and 'b' is lost. Is
there any way to write data so that the list name is written instead
of the list's values? Essentially, '[[a], ]' instead of '[[1],
[2]]'? Any help most appreciated.