This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hagen
Recipients amaury.forgeotdarc, eric.smith, gpolo, hagen, ncoghlan, rhettinger
Date 2008-12-20.08:15:35
SpamBayes Score 1.1411896e-05
Marked as misclassified No
Message-id <494CA9A6.7070108@gmx.net>
In-reply-to <1229755888.97.0.55180117831.issue4701@psf.upfronthosting.co.za>
Content
> I don't believe there is any driving reason for them not to be hashable.

On the other hand, what is the use case for hashing objects whose
equality is defined as object identity?

Python 3.0 (r30:67503, Dec  4 2008, 06:47:38)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> range(10).__hash__
<method-wrapper '__hash__' of range object at 0x7f2d61dbd210>
>>> {range(10), range(10)}
{range(0, 10), range(0, 10)}

I can see only confusion arising from that.
History
Date User Action Args
2008-12-20 08:15:39hagensetrecipients: + hagen, rhettinger, amaury.forgeotdarc, ncoghlan, eric.smith, gpolo
2008-12-20 08:15:38hagenlinkissue4701 messages
2008-12-20 08:15:35hagencreate