Skip to content

method call in __init__ get its result returned to the caller #16

Description

I hope this example code is explicit enough

class ERROR:
    pass

class B:
    def __init__(self):
        super(B, self).__init__()
        self.build_element()

    def build_element(self):
        return ERROR('body')


def dom_ready():
    b = B()
    return b  # == ERROR()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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