Skip to content

new(...) vs __new(...) #3

@skrolikowski

Description

@skrolikowski

💡 Idea:

Problem:
When calling a "new" Module, the new(...) functions will be called. If the Module includes Mixins, then their new(...) functions will be called as well. For some, this may not be acceptable, due to the Mixins requiring a different set of arguments.

Solution:
Introduce a new function __new(...), which will override a Mixin's new(...) call if one exists, otherwise fallback to the default new(...) function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement 👍New feature or requestidea 💡Proposed idea.. may be included.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions