Just an idea:
x @ y
would be equiv. toy.__call__(x)
unless__rmatmal__
is explicitly defined.- Thus, it should have lower precedence than
__rmatmul__
. - But should have higher precedence than
__matmul__
.
I haven’t had solved this contradiction yet, but I achieved @
magic syntax by directly overwriting the interpreter of wx.py.shell
:
I also think the good point about this feature of the shell is that evaluating expressions step by step allows the user to check for correct typing and results step by step.