Open tekknolagi opened 1 year ago
Unless---oops---it actually puts that opcode after CALL_FUNCTION
to type, instead of inside the method
Oh it's a shim frame, neat
I wonder how we could push that frame very fast without doing the sort of static-alloc and pointer link thing they do in CPython
https://github.com/python/cpython/compare/main...faster-cpython:cpython:specialize-calls-to-python-classes
This is "easy" for normal
def __init__
but harder for__init__ = x
andty.__init__ = x
because you have to hook and re-instrument or something.