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 <>
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())
Date User Action Args
2019-08-10 16:36:05rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka
2019-08-10 16:36:05rhettingersetmessageid: <>
2019-08-10 16:36:05rhettingerlinkissue37807 messages
2019-08-10 16:36:05rhettingercreate