From: Clark C. E. <cc...@cl...> - 2005-01-04 13:02:30
|
On Tue, Jan 04, 2005 at 02:44:21PM +1100, Simon Cusack wrote: | I have been putting YAML through its paces on python/syck and so far | have loved the results. That's great. | I am trying to work out how to put in hooks to get data loaded from a | YAML file into user defined classes rather than just as dictionaries, | lists, sequences, etc. Syck doesn't have hooks (it's a very basic loader), and PyYAML uses a 'registry' of sorts, but it isn't very well done. I just use maps/lists for the most part. I had planned to "hook" the Python binding of YAML into the broader 'pickle' framework, by patching it with a more pluggable interface. The PyYaml code that traverses a internal Python structure gets confused now and again. Best, Clark |