Skip to content

Add opcode to check for returning None in __init__ #515

Description

@tekknolagi

python/cpython@main...faster-cpython:cpython:specialize-calls-to-python-classes

This is "easy" for normal def __init__ but harder for __init__ = x and ty.__init__ = x because you have to hook and re-instrument or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions