we need this method, and the following bad behavior goes against python's design:<br>>>> from pywikibot import *<br>>>> Link.__hash__<br><slot wrapper '__hash__' of 'object' objects><br>
>>> Link.__eq__<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>AttributeError: type object 'Link' has no attribute '__eq__'<br>>>> Link.__cmp__<br>
<unbound method Link.__cmp__><br>>>> hash(Link('1'))<br>26872464<br>>>> hash(Link('1'))<br>26872400<br>>>> hash(Link('1'))<br>26872464<br>>>> Link('1')==Link('1')<br>
Found 1 wikipedia:zh processes running, including this one.<br>True<br>>>> hash(Link('1'))==hash(Link('1'))<br>False<br>>>><br><br>