Skip to content

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

@ghost

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions