Hello all,
In my project, I have container classes holding lists of item classes.
For example, a container class myLibrary might hold a list of item
classes myNation and associated variables like myNation.name='USA' and
myNation.continent='North America'.
Bottom line, I was hoping to use this str
Thank you Martin. I had not considered pickle, and I've done my
research. However, I'm still having problems:
Your foo class (for pickle and xml dumps) works fine for me.
>>> f=Foo()
>>> f.thanksTo='Martin'
>>> f.howMany=100
>>> pickle.dumps(f)
"(i__main__\nFoo\np0\n(dp1\nS'thanksTo'\np2\nS'Mart
I don't even know where to begin. This is just bizarre. I just picked
up the Gnuplot.py module (a light interface to gnuplot commands) and
was messing around with it today.
I've got a tiny script, but it only works from the command line about
half the time! In the python interpreter, 100%. Ip
Thanks for all the help, guys!
The affected computer is at home, but I'll address all these issues
before I post again with my fix.
James: It's on my personal box, and I've got reiserfs.
David:
OS: GNU/Linux 2.4 (Gentoo)
Python 2.3
GNUplot 1.6
I just checked the Gentoo Portage tree and 1.7 is l
Ok yall, here's my summary. Thanks again for all the help.
Most importantly, upgrading to gnuplot-py 1.7 fixes this problem.
In gnuplot-py 1.6, this is the bottom line...
Does not fix:
Gnuplot.GnuplotOpts.prefer_fifo_data = 0
Fixes:
Gnuplot.GnuplotOpts.prefer_inline_data = 1
Fixes: (placed b
def unpickle(self):
self = pickle.load(open(self.getFilePath('pickle')))
This evidently does not work. Any idea why? I'd like to be able to
replace a lightly populated class (enough to identify the pickled
version correctly) with it's full version that's sitting pickled in a
file.
As of right