Custom Query (121 matches)
Results (49 - 51 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #130 | fixed | Python 3.1 support? | xi | tom.aldenberg@… |
| Description |
Hi, I wanted to try PyYaml? under 3.1rc2, but the installment procedure refused to recognize, or name, a directory other than Python30. |
|||
| #137 | fixed | PROPOSED FIX:memory corruption and bad aliases | xi | cegner@… |
| Description |
Libyaml 0.1.2 fails to serialize python longs correctly. The pure python implementation produces correct output. This is a major issue for us since we make heavy use of yaml and the pure python implementation is too slow for our needs (not a criticism, just a statement of fact). I've given this 'blocker' severity and high priority since long is a basic python type. If this is inappropriate, please let me know. When is the next scheduled release of libyaml? Minimal test case: >>> import yaml
>>> from yaml import Dumper
>>> from yaml import CDumper
>>> yaml.__version__
'3.08'
>>> # libyaml doesn't have __version__ support but is 0.1.2
>>> d = { 'hourEastern': 20L, 'hour_eastern': 20L }
>>> yaml.dump( d, Dumper = CDumper )
'{hourEastern: &20 !!python/long 20, hour_eastern: *id001}\n'
>>> yaml.dump( d, Dumper = Dumper )
"{hourEastern: &id001 !!python/long '20', hour_eastern: *id001}\n"
|
|||
| #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. |
|||
