[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)
report at bugs.python.org
Wed Jul 14 20:20:59 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
I am attaching a patch that uses a regular union of long and Py_ssize_t to store cached hash/index value in both set and dict entry. Using an anonymous union would simplify the patch and would reduce the likelihood of breaking extensions that access entry structs.
Added file: http://bugs.python.org/file18004/issue1646068.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list