[Python-Dev] Py_ssize_t (original) (raw)
Guido van Rossum guido at python.org
Tue Feb 20 19:35:57 CET 2007
- Previous message: [Python-Dev] Py_ssize_t
- Next message: [Python-Dev] Welcome to the "Python-Dev" mailing list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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(Pyssizet) > 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/)
- Previous message: [Python-Dev] Py_ssize_t
- Next message: [Python-Dev] Welcome to the "Python-Dev" mailing list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]