开发者

__rlshift__, __ror__ in Python

开发者 https://www.devze.com 2022-12-22 17:58 出处:网络
I noticed that this recipe seems to use __rlshift__, __ror__ like operators. But, they aren\'t in the documentation! Can anyone explain these and perhaps po开发者_如何学Pythonint to some docs?See the

I noticed that this recipe seems to use __rlshift__, __ror__ like operators. But, they aren't in the documentation! Can anyone explain these and perhaps po开发者_如何学Pythonint to some docs?


See the documentation for:

  • object.__rlshift__()
  • object.__ror__()

__rlshift__ is the swapped operands version of __lshift__, used when the right-hand operand supports the operation but the left-hand operand doesn't.

0

精彩评论

暂无评论...
验证码 换一张
取 消