[Python-Dev] Fwd: [Python-checkins] r51236 - in python/trunk: Doc/api/abstract.tex Include/abstract.h Include/object.h Lib/test/test_index.py Misc/NEWS Modules/arraymodule.c Modules/mmapmodule.c Modules/operator.c Objects/abstract.c Objects/class (original) (raw)

Travis E. Oliphant oliphant.travis at ieee.org
Sun Aug 13 02:05:21 CEST 2006


Tim Peters wrote:

[Travis E. Oliphant]

Right now throughout the Python code it is assumed that sizeof(Pyssizet) <= sizeof(long). If you find any code like that, it's a bug. Win64 is a platform where it's false.

Sorry for my confusion. I meant to say that it is assumed that

sizeof(long) <= sizeof(Py_ssize_t)

because the assumption is that a Python Int (stored as long) will always fit into into a Py_ssize_t.

I think this is true on all platforms.

-Travis



More information about the Python-Dev mailing list