Custom Query (121 matches)
Results (64 - 66 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #147 | fixed | Loader and Dumper leave circular references around | xi | kristjan@… |
| Description |
In an environment where the gc module is turned off, having circular references is evil. When yaml.Loader and yaml.Dumper have finished processing a stream, they leave a bound method in their .state attribute. This causes the loaders and dumpers to stick around. We have patched this locally by doing, for example: dumper=Dumper() dumper.open() try: for data in documents: dumper.represent(data) dumper.close() finally: dumpter.state = dumper.states = None Maybe there is a better way. Perhaps the Dumper and Loader should both have close() methods that clear the state. Another way would be to not keep instancemethods in state, but rather class methods and bind them to self at runtime. |
|||
| #146 | invalid | Trunk build fail | xi | lacombar@… |
| Description |
I got the following trunk build failure on a NetBSD host: In file included from api.c:10: yaml_private.h:1234: error: expected '{' before 'typedef' yaml_private.h:1239: warning: data definition has no type or storage class |
|||
| #64 | fixed | yaml.dump and indentation: | xi | lal.george@… |
| Description |
In python, when I have : y = {'x' : 3, z : [{'val' : 3}, {'val' : 4}]} yaml.dump(y, default_flow_style=False) The result is: 'x: 3\nz:\n- val: 3\n- val: 4\n' I believe there should be a space before each hypen. Best,
|
|||
