Skip to content

nondeterministic behavior when defining custom post_load method in class inheriting SQLAlchemySchema #502

@beaulian

Description

@beaulian

Hi,

I found a post_load method defined in LoadInstanceMixin class called make_instance, if there exists a class inheriting SQLAlchemySchema and then I define a post_load method called f(self, data, **kwargs), it will execute before make_instance since the execution order is alphabetical according to dir builtin function. If the post_load method calls t, then it will execute after the make_instance. As a result, parameter data in function f is a dict and is an object in function g.

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