X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fmeta.py;h=9265c3cddfe6103e36eb80d3203317295fa2aae7;hb=24cc6f0ba625f217d6127fc0cee880b22a8c6cbf;hp=949b5562a791385c534babb097f0e1430d256e3a;hpb=2e34618e3685daa3dc877de584dee886e8f21af6;p=mpd-sima.git diff --git a/sima/lib/meta.py b/sima/lib/meta.py index 949b556..9265c3c 100644 --- a/sima/lib/meta.py +++ b/sima/lib/meta.py @@ -68,6 +68,11 @@ class Meta: return bool(self.name) class Album(Meta): + """Info: + If a class that overrides __eq__() needs to retain the implementation of + __hash__() from a parent class, the interpreter must be told this explicitly + by setting __hash__ = .__hash__. + """ __hash__ = Meta.__hash__ def __init__(self, **kwargs):