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

Marc-Andre Lemburg report at bugs.python.org
Mon Oct 18 16:47:36 CEST 2010


Marc-Andre Lemburg <mal at egenix.com> added the comment:

Benjamin Peterson wrote:
> 
> Benjamin Peterson <benjamin at python.org> added the comment:
>> Marc-Andre Lemburg <mal at egenix.com> added the comment:
>>
>> And related to my previous comment: shouldn't Py_hash_t map to size_t instead of Py_ssize_t ?
> 
> No, negative values have to be allowed.

Ah, right... we use -1 as error indicator.

----------

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


More information about the Python-bugs-list mailing list