Author ncoghlan
Recipients amaury.forgeotdarc, barry, eikeon, glyph, gvanrossum, jek, ncoghlan, rhettinger, schmir
Date 2008-07-02.14:42:17
SpamBayes Score 0.000879305
Marked as misclassified No
Message-id <1215009739.49.0.790361583328.issue2235@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2008-07-02 14:42:20ncoghlansetspambayes_score: 0.000879305 -> 0.000879305
recipients: + ncoghlan, gvanrossum, barry, rhettinger, amaury.forgeotdarc, schmir, jek, eikeon, glyph
2008-07-02 14:42:19ncoghlansetspambayes_score: 0.000879305 -> 0.000879305
messageid: <1215009739.49.0.790361583328.issue2235@psf.upfronthosting.co.za>
2008-07-02 14:42:18ncoghlanlinkissue2235 messages
2008-07-02 14:42:17ncoghlancreate