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 rhettinger
Recipients mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2019-08-10.16:36:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565454965.25.0.221274181402.issue37807@roundup.psfhosted.org>
In-reply-to
Content
We think can clarify that those docs describe int.__hash__, float.__hash__, and complex.__hash__.   

The builtin hash() function can and does make transformations on the result from the __dunder__ method:

    >>> class A:
	    def __hash__(self):
 		return 123423412341234123412341234

    >>> hash(A())
    1656462513496965462
History
Date User Action Args
2019-08-10 16:36:05rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka
2019-08-10 16:36:05rhettingersetmessageid: <1565454965.25.0.221274181402.issue37807@roundup.psfhosted.org>
2019-08-10 16:36:05rhettingerlinkissue37807 messages
2019-08-10 16:36:05rhettingercreate