Skip to content

newsuper causes Segmentation Fault when processing newobject #223

Closed
@bakkerthehacker

Description

@bakkerthehacker

This issue has been very difficult to debug.

In python 2.7 code, I have a class that subclasses other classes. Some of the parent classes use from builtins import object while other parent classes do not.

The mro of this subclass then ends up with newobject not being at the second highest level, next to the original object. There are some of my other classes between the newobject and the base object in the mro. When i use from builtins import super on these objects, python crashes with a Segmentation Fault when it processes the newobject.

I believe the problem comes from the _interface_coptimizations.ObjectSpecificationDescriptor method that is on the newobject. I'm not sure what i can do to get this to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions