Commit graph

9 commits

Author SHA1 Message Date
Kirill Simonov
29413ea88e Fix timestamp constructing and representing (close #25). 2006-08-16 18:22:38 +00:00
Kirill Simonov
8b083c6a96 Subclass all base classes from object.
Hold references to the objects being represented (should fix #22).

The value of a mapping node is represented as a list of pairs `(key, value)`
now.

Sort dictionary items (fix #23).

Recursive structures are now loaded and dumped correctly, including complex
structures like recursive tuples (fix #5). Thanks Peter Murphy for the patches.
To make it possible, representer functions are allowed to be generators.
In this case, the first generated value is an object. Other values produced
by the representer are ignored.

Make Representer not try to guess `!!pairs` when a list is represented.
You need to construct a `!!pairs` node explicitly now.

Do not check for duplicate mapping keys as it didn't work correctly anyway.
2006-08-03 16:07:29 +00:00
Kirill Simonov
500659ddd6 Revamp the inf/nan handling again. 2006-05-22 19:49:54 +00:00
Kirill Simonov
410d822bd5 Prepare setup.py for release. Fix #7. 2006-04-23 18:07:52 +00:00
Kirill Simonov
c87ce16706 Add support for pickling/unpickling python objects. 2006-04-22 20:40:43 +00:00
Kirill Simonov
cce15169da Fix !!python/name for Python 2.3. Clear the yaml module namespace. 2006-04-21 17:31:29 +00:00
Kirill Simonov
89cc4e3e4f Add more unit tests. 2006-04-18 19:33:30 +00:00
Kirill Simonov
6a97abb4c7 Major refactoring. 2006-04-15 23:54:52 +00:00
Kirill Simonov
4c570faa8b Move pyyaml3000 to a separate directory. 2006-03-04 22:43:48 +00:00