[New-bugs-announce] [issue46929] __rrshift__ for same class obj will raise TypeError
ZhengYu, Xu
report at bugs.python.org
Sat Mar 5 09:33:30 EST 2022
New submission from ZhengYu, Xu <zen-xu at outlook.com>:
```
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
status: open
title: __rrshift__ for same class obj will raise TypeError
type: behavior
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46929>
_______________________________________
More information about the New-bugs-announce
mailing list