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 ncoghlan
Recipients amaury.forgeotdarc, barry, eikeon, glyph, gvanrossum, jek, ncoghlan, rhettinger, schmir
Date 2008-07-02.14:42:17
SpamBayes Score 0.0008793049
Marked as misclassified No
Message-id <>
Suggestion from GvR (one I like): instead of re-using Py_None, add a new
C function that is stored in the tp_hash slot as a sentinel instead of
the Py_None value used in the posted version of the patch. This will
avoid breaking code that just checks for NULL before calling the tp_hash
slot directly, while still allowing typeobject.c to detect that the
object isn't actually hashable despite the presence of a non-NULL value
in the tp_hash slot.

(I'll keep the None at the Python level though, since that matches the
Py3k behaviour and plays nicely with collections.Hashable)
Date User Action Args
2008-07-02 14:42:20ncoghlansetspambayes_score: 0.000879305 -> 0.0008793049
recipients: + ncoghlan, gvanrossum, barry, rhettinger, amaury.forgeotdarc, schmir, jek, eikeon, glyph
2008-07-02 14:42:19ncoghlansetspambayes_score: 0.000879305 -> 0.000879305
messageid: <>
2008-07-02 14:42:18ncoghlanlinkissue2235 messages
2008-07-02 14:42:17ncoghlancreate