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 | <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:20 | ncoghlan | set | spambayes_score: 0.000879305 -> 0.0008793049 recipients: + ncoghlan, gvanrossum, barry, rhettinger, amaury.forgeotdarc, schmir, jek, eikeon, glyph |
| 2008年07月02日 14:42:19 | ncoghlan | set | spambayes_score: 0.000879305 -> 0.000879305 messageid: <1215009739.49.0.790361583328.issue2235@psf.upfronthosting.co.za> |
| 2008年07月02日 14:42:18 | ncoghlan | link | issue2235 messages |
| 2008年07月02日 14:42:17 | ncoghlan | create | |