Override all Python comparison methods in one declaration

后端 未结 0 701
梦如初夏
梦如初夏 2020-11-30 17:17

Suppose you have a simple class like A below. The comparison methods are all virtually the same except for the comparison itself. Is there a shortcut around dec

相关标签:
回答
  • 消灭零回复
提交回复
热议问题