[issue46929] __rrshift__ for same class obj will raise TypeError
ZhengYu, Xu added the comment: But with different classed will be right ``` class C: def __rrshift__(self, v): return 1 class D: def __rrshift__(self, v): return 2 C() >> D() # 2 ``` -- ___ Python tracker
[issue46929] __rrshift__ for same class obj will raise TypeError
New submission from ZhengYu, Xu : ``` class C: def __rrshift__(self, v): return 1 C() >> C() # raise TypeError: unsupported operand types(s) for >>: 'C' and 'C' ``` -- messages: 414578 nosy: zen-xu priority: normal severity: normal sta