Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (112 - 114 of 121)

Ticket Resolution Summary Owner Reporter
#53 fixed Allow for immutable subclasses of YAMLObject xi toidinamai

Reported by toidinamai, 6 years ago.

Description

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.

#130 fixed Python 3.1 support? xi tom.aldenberg@…

Reported by tom.aldenberg@…, 4 years ago.

Description

Hi, I wanted to try PyYaml? under 3.1rc2, but the installment procedure refused to recognize, or name, a directory other than Python30.

#188 fixed pyyaml 3.09 fails to build with gcc4.6 xi ubuntu@…

Reported by ubuntu@…, 2 years ago.

Description

In the next Ubuntu release we will be using gcc4.6. pyyaml fails to build with it. The failure is:

Function `PyCObject_FromVoidPtr' implicitly converted to pointer at ext/_yaml.c:20301 Function `PyCObject_FromVoidPtr' implicitly converted to pointer at ext/_yaml.c:20301

The full build log is available at:

 https://launchpadlibrarian.net/69956046/buildlog_ubuntu-natty-amd64.pyyaml_3.09-5ubuntu2_FAILEDTOBUILD.txt.gz

Note: See TracQuery for help on using queries.