public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/31737] New: valpy_hash seems incorrect
@ 2024-05-13 16:46 tromey at sourceware dot org
0 siblings, 0 replies; only message in thread
From: tromey at sourceware dot org @ 2024-05-13 16:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31737
Bug ID: 31737
Summary: valpy_hash seems incorrect
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
valpy_hash is just:
static Py_hash_t
valpy_hash (PyObject *self)
{
return (intptr_t) self;
}
However, I think the richcompare function has to agree
with the hash: that is, if two objects compare as equal,
then they should have identical hashes.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-13 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 16:46 [Bug python/31737] New: valpy_hash seems incorrect tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).