> 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
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:
> 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
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
> 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
> 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
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