Custom Query (121 matches)
Results (10 - 12 of 121)
|#130||fixed||Python 3.1 support?||xi||tom.aldenberg@…|
Hi, I wanted to try PyYaml? under 3.1rc2, but the installment procedure refused to recognize, or name, a directory other than Python30.
|#53||fixed||Allow for immutable subclasses of YAMLObject||xi||toidinamai|
YAMLObject are not directly instantiated so they don't need their own instance attribute (i.e. an own dict). Because of that they should define an empty slots and let subclasses decide whether they want arbitrary instance attributes or not:
--- lib/yaml/__init__.py (revision 251) +++ lib/yaml/__init__.py (working copy) @@ -272,6 +272,9 @@ yaml_tag = None yaml_flow_style = None + # no direct instantiation, so allow for immutable subclasses + __slots__ = () + def from_yaml(cls, loader, node): """ Convert a representation node to a Python object.
The same is basically also true for YAMLObjectMetaclass but I doubt there is much use for this in practice.
|#3||fixed||allow_unicode missing in emitter?||xi||tim@…|
Trying to emit plain chars in utf8 (£ symbol for instance - \xc2\xa3) isn't working.. I think I've tracked it down to missing allow_unicode passing through to emitter and possibly the emit events resetting allow_unicode (I won't say I've fixed it as I've forced allow_unicode to True in various places to get it to emit plain's in utf-8 rather than double quoted escaped unicode). I'll post more tomorrow if I can get my fix cleaner. Looking good btw!!