Source

pyyaml / lib / yaml / constructor.py

Author Commit Message Labels Comments Date
Kirill Simonov
Clear cyclic references in the parser and the emitter to avoid extra GC calls.
Kirill Simonov
Removed unused variable.
Kirill Simonov
Fixed Python 2.3 compatibility (thanks to Julian Scheid for suggestion).
Kirill Simonov
Make compose() and load() ensure that the input stream contains a single document. Fixes #54.
Kirill Simonov
Make the encoding of the unicode->str conversion explicit; fix [52].
Kirill Simonov
Use the types module instead of constructing type objects by hand. Fix #41. Thanks to v.haisman@sh.cvut.cz for the patch.
Kirill Simonov
Fix loss of microsecond precision in datetime.datetime constructor (fix #30). Thanks to edemaine@mit.edu for the bug report and the patch.
Kirill Simonov
Fix timestamp constructing and representing (close #25).
Kirill Simonov
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 b…
Kirill Simonov
To make porting easier, rewrite Parser not using generators. Fix handling of unexpected block mapping values, like {{{ : foo }}} Remove obsolete and unused {{{__iter__}}} functions.
Kirill Simonov
Add pyrex-based bindings for the libyaml scanner.
Kirill Simonov
Optimize slightly the float constructor.
Kirill Simonov
Revamp the inf/nan handling again.
Kirill Simonov
Fixed #15 (pyyaml discards '-' sign on negative floats). Thanks to alex_(a)_alexmole_(o)_co_(o)_uk for reporting the bug.
Kirill Simonov
Dynamically determine the inf and nan values. Should fix #14. Thanks to Scott Daniels for the report and the patch.
Kirill Simonov
Add support for pickling/unpickling python objects.
Kirill Simonov
Fix !!python/name for Python 2.3. Clear the yaml module namespace.
Kirill Simonov
Add support for recursive nodes to Composer. Constructor does not support recursive objects though.
Kirill Simonov
Add constructors for some simple python types.
Kirill Simonov
Major refactoring.
Kirill Simonov
Implement yaml.dump().
Kirill Simonov
Back to work :). Rename markers to marks.
Kirill Simonov
Move pyyaml3000 to a separate directory.