Skip to content

[slots] it may be a bug in file constructor.py #232

@Freakwill

Description

@Freakwill

If the following code is triggered, then you will be told that there is a TypeError: can't set attributes of built-in/extension type 'object'. I guess it should be setattr(instance, key, value).

    def set_python_instance_state(self, instance, state):
        ......
            for key, value in slotstate.items():
                setattr(object, key, value)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions