[Python-Dev] Py_ssize_t
Guido van Rossum
guido at python.org
Tue Feb 20 19:35:57 CET 2007
On 2/20/07, Tim Peters <tim.peters at gmail.com> wrote:
> In any case, hash codes are defined to be of type "long" in the C API,
> so there appears no painless way to boost their size on boxes where
> sizeof(Py_ssize_t) > sizeof(long).
But that would only be on Windows; I believe other vendors have a
64-bit long on 64-bit machines.
I suppose the pain wouldn't be any greater than the pain of turning
int into Py_ssize_t. Perhaps less so in Py3k since there the issue
that PyInt only holds a C long is solved (by equating it to PyLong :).
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list