[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

Alexander Belopolsky report at bugs.python.org
Mon Oct 18 19:31:51 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Mon, Oct 18, 2010 at 1:25 PM, Case Van Horsen <report at bugs.python.org> wrote:
..
> We either needed to (1) add an unsigned Py_hash_t type or (2) just use size_t and Py_ssize_t.
>

Option (2) may actually be preferable because dict and set
implementations rely on Py_hash_t being compatible with Py_ssize_t.
See issue 1646068.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9778>
_______________________________________


More information about the Python-bugs-list mailing list