Re: pickle juice and YAML (Re: [Tutor] dumping .pck files)

2005-01-05 Thread Alan Gauld
> Alan Gauld wrote: > > (Who hates XML almost as much as Java! :-) > > IMO dom4j makes XML quite easy to use from Java and really pleasant > in Jython. The integrated XPath support essentially gives you a > query engine on your data. > http://www.dom4j.org > Kent > (Who hates Java but has come to

Re: pickle juice and YAML (Re: [Tutor] dumping .pck files)

2005-01-05 Thread Kent Johnson
Alan Gauld wrote: (Who hates XML almost as much as Java! :-) IMO dom4j makes XML quite easy to use from Java and really pleasant in Jython. The integrated XPath support essentially gives you a query engine on your data. http://www.dom4j.org I have written about dom4j, Jython and XPath here: http:

Re: pickle juice and YAML (Re: [Tutor] dumping .pck files)

2005-01-04 Thread Alan Gauld
> Finally, another serialization format that is eminently readable is > YAML ("YAML Ain't Markup Language"). Besides Python, it works for > Ruby et al., can be used as an alternative to xml, etc. A new one on me but I'll take a klook, thanks for posting. Alan G. (Who hates XML almost as much as

pickle juice and YAML (Re: [Tutor] dumping .pck files)

2005-01-04 Thread Neal McBurnett
Thanks to Patric Michael and Alan Gauld for helpful responses. The mailman "config_list" command was perfect for my near-term needs. A bit more digging led me to juicier info on pickles, for my longer term nourishment and development. Lots of documentation is in /usr/lib/python2.3/pickletools.py

Re: [Tutor] dumping .pck files

2005-01-03 Thread Alan Gauld
> It seems that to do a good job of dumping the data, I need to tell it > what this class looks like. > > Are there alternatives? Does the pickle format really not provide a > way to inspect the data without the class definitions? I suspect that loading the file into a good text editror like vim

Re: [Tutor] dumping .pck files

2005-01-02 Thread Patric Michael
> I want to explore some mailman config files, e.g. > config.pck. Some quick searches informed me that these > contain pickled configuration info. > > My first naive attempt to dump what was in them failed: > > >>> import pickle > >>> pickle.load(open("config.pck")) > traceback > ImportError

[Tutor] dumping .pck files

2005-01-02 Thread Neal McBurnett
I want to explore some mailman config files, e.g. config.pck. Some quick searches informed me that these contain pickled configuration info. My first naive attempt to dump what was in them failed: >>> import pickle >>> pickle.load(open("config.pck")) traceback ImportError: No module named Ma