How to combine both CommonEqualityMixin with __slots__

前端 未结 0 1418
醉梦人生
醉梦人生 2020-12-20 08:25

Elegant ways to support equivalence (“equality”) in Python classes

#!/usr/bin/env python

class CommonEqualityMixin(object):
    def __eq__(self, other):
             


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