From: Tim P. <ti...@po...> - 2004-07-01 22:37:06
|
Hi, This is just a request to try to find out the status of python with yaml. We want to use yaml for a few projects under python and have started looking in earnest. I've installed syck and managed to load yaml files but can't work out how Node works? Can someone point me in the direction of how to pickle a Python object using yaml? If the yaml on python is sleepy at the moment we'd be interested in picking up something. How far did PyYaml get and what were the problems with it? We don't see performance as a huge issue so picking up PyYaml might make sense combined with optional syck parsing. Anyway I won't waffle. Any responses appreciated. Tim Parkin |
From: Clark C. E. <cc...@cl...> - 2004-07-02 00:17:25
|
Hello Tim. Currently PyYaml is not maintained (anyone want to step up?). I've wrote "basic" bindings for the Syck parser, and I use this heavily. When I did the Syck bindings, it didn't have an emitter, so I copied over the "dumper" from PyYaml, it is 'ydump.py' in the ext directory. However, ydump.py (and the original PyYaml dumper) has a few problems with recursion, and I have not tracked down what those problems are... About a month or so ago _why gave me CVS access to Syck and I was planning to do a simple Yaml dumper for Python, and improve the loader. Unfortunately, my day job keeps getting in the way. For now, I suggest using the 'ydump' in the syck distribution, and use the syck parser. Even when using the syck emitter, a bulk of the code in ydump will remain (unless it is re-written with "C" specific to Python). I _will_ accept and incorporate patches to 'ydump.py' in the syck distribution... if you want to hack on the recursion problem. Clark On Thu, Jul 01, 2004 at 11:36:58PM +0100, Tim Parkin wrote: | Hi, | | This is just a request to try to find out the status of python with | yaml. We want to use yaml for a few projects under python and have | started looking in earnest. I've installed syck and managed to load yaml | files but can't work out how Node works? Can someone point me in the | direction of how to pickle a Python object using yaml? | | If the yaml on python is sleepy at the moment we'd be interested in | picking up something. How far did PyYaml get and what were the problems | with it? We don't see performance as a huge issue so picking up PyYaml | might make sense combined with optional syck parsing. | | Anyway I won't waffle. Any responses appreciated. | | Tim Parkin | | | | ------------------------------------------------------- | This SF.Net email sponsored by Black Hat Briefings & Training. | Attend Black Hat Briefings & Training, Las Vegas July 24-29 - | digital self defense, top technical experts, no vendor pitches, | unmatched networking opportunities. Visit www.blackhat.com | _______________________________________________ | Yaml-core mailing list | Yam...@li... | https://lists.sourceforge.net/lists/listinfo/yaml-core -- Clark C. Evans Prometheus Research, LLC Chief Technology Officer Turning Data Into Knowledge cc...@pr... www.prometheusresearch.com (main) 203.777.2550 (cell) 203.444.0557 |
From: John P. <jpy...@ca...> - 2004-07-02 01:03:14
|
I can't speak to the dumper, however I use a patched version of PyYaml for loading yaml from perl in production. I wrote two patches which handle fixes/improvements for folding blocks I think it is and empty scalars. Basically what I needed it to do. If anyone is interested as before I can supply patches, etc. Unfortunately I wish the python yaml side were better off I could help improve it, but my day job is soaking up all my time. Johnny P On Thursday 01 July 2004 05:17 pm, Clark C. Evans wrote: > Hello Tim. > > Currently PyYaml is not maintained (anyone want to step up?). I've > wrote "basic" bindings for the Syck parser, and I use this heavily. When > I did the Syck bindings, it didn't have an emitter, so I copied over the > "dumper" from PyYaml, it is 'ydump.py' in the ext directory. However, > ydump.py (and the original PyYaml dumper) has a few problems with > recursion, and I have not tracked down what those problems are... > > About a month or so ago _why gave me CVS access to Syck and I was > planning to do a simple Yaml dumper for Python, and improve the loader. > Unfortunately, my day job keeps getting in the way. For now, I suggest > using the 'ydump' in the syck distribution, and use the syck parser. > Even when using the syck emitter, a bulk of the code in ydump will > remain (unless it is re-written with "C" specific to Python). > > I _will_ accept and incorporate patches to 'ydump.py' in the syck > distribution... if you want to hack on the recursion problem. > > Clark > > On Thu, Jul 01, 2004 at 11:36:58PM +0100, Tim Parkin wrote: > | Hi, > | > | This is just a request to try to find out the status of python with > | yaml. We want to use yaml for a few projects under python and have > | started looking in earnest. I've installed syck and managed to load yaml > | files but can't work out how Node works? Can someone point me in the > | direction of how to pickle a Python object using yaml? > | > | If the yaml on python is sleepy at the moment we'd be interested in > | picking up something. How far did PyYaml get and what were the problems > | with it? We don't see performance as a huge issue so picking up PyYaml > | might make sense combined with optional syck parsing. > | > | Anyway I won't waffle. Any responses appreciated. > | > | Tim Parkin > | > | > | > | ------------------------------------------------------- > | This SF.Net email sponsored by Black Hat Briefings & Training. > | Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > | digital self defense, top technical experts, no vendor pitches, > | unmatched networking opportunities. Visit www.blackhat.com > | _______________________________________________ > | Yaml-core mailing list > | Yam...@li... > | https://lists.sourceforge.net/lists/listinfo/yaml-core |