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 gvanrossum
Recipients amaury.forgeotdarc, gvanrossum, jek, rhettinger
Date 2008-03-05.00:12:29
SpamBayes Score 0.014048479
Marked as misclassified No
Message-id <>
In-reply-to <>
>  I noticed that my patch uses Py_TYPE(self)->tp_hash, whereas normal
>  processing of slot_tp_hash() uses lookup_method(self,"__hash__",hash_str).
>  I am almost sure that both expressions return the same value.
>  Is this correct? Py_TYPE(self)->tp_hash seems much faster.


There are cases where Py_TYPE(self)->tp_hash is the function currently
executing (some wrapper(s) in typeobject.c). OTOH, lookup_method(...)
finds the Python code in the class __dict__s along the MRO.
Date User Action Args
2008-03-05 00:12:30gvanrossumsetspambayes_score: 0.0140485 -> 0.014048479
recipients: + gvanrossum, rhettinger, amaury.forgeotdarc, jek
2008-03-05 00:12:29gvanrossumlinkissue2235 messages
2008-03-05 00:12:29gvanrossumcreate